From bb717cb541bc11ab83c37b642ccbcd0dc940cd10 Mon Sep 17 00:00:00 2001 From: Mingun Date: Thu, 21 Mar 2024 21:21:57 +0500 Subject: [PATCH] Add missing `.ksy` suffix in error message to the name of file that could not be located Also all other error messages starts with lower case, so adjust that's too Fixes the test: ``` [info] - meta_imports_abs_unknown *** FAILED *** [info] meta_imports_abs_unknown: /meta/imports/0: [info] error: Unable to find 'unknown_absolute_name' in import search paths, using: List() [info] did not equal meta_imports_abs_unknown.ksy: /meta/imports/0: [info] error: Unable to find 'unknown_absolute_name' in import search paths, using: List() (SimpleMatchers.scala:34) ``` --- .../main/scala/io/kaitai/struct/formats/JavaClassSpecs.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jvm/src/main/scala/io/kaitai/struct/formats/JavaClassSpecs.scala b/jvm/src/main/scala/io/kaitai/struct/formats/JavaClassSpecs.scala index 368084e57..d5df4554a 100644 --- a/jvm/src/main/scala/io/kaitai/struct/formats/JavaClassSpecs.scala +++ b/jvm/src/main/scala/io/kaitai/struct/formats/JavaClassSpecs.scala @@ -55,7 +55,7 @@ class JavaClassSpecs(relPath: String, absPaths: Seq[String], firstSpec: ClassSpe } } } - throw new FileNotFoundException(s"Unable to find '$name' in import search paths, using: $absPaths") + throw new FileNotFoundException(s"unable to find '$name.ksy' in import search paths, using: $absPaths") } }