Skip to content

Commit 4ed5981

Browse files
committed
Fix path in "this ksy requires compiler version at least $VERSION, but you have $KS_VERSION" error
Errors count: 51 -> 50 (-1). Fixed: [info] - meta_high_version *** FAILED *** [info] [meta_high_version.ksy: /meta: [info] error: this ksy requires compiler version at least 99.99.99, but you have $KS_VERSION [info] ] [info] did not equal [info] [meta_high_version.ksy: /meta/ks-version: [info] error: this ksy requires compiler version at least 99.99.99, but you have $KS_VERSION [info] ] (SimpleMatchers.scala:34)
1 parent 6830e6b commit 4ed5981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/main/scala/io/kaitai/struct/format/MetaSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ object MetaSpec {
9292
ParseUtils.getOptValueStr(srcMap, "ks-version", path).foreach { (verStr) =>
9393
val ver = KSVersion.fromStr(verStr)
9494
if (ver > KSVersion.current)
95-
throw KSYParseError.incompatibleVersion(ver, KSVersion.current, path)
95+
throw KSYParseError.incompatibleVersion(ver, KSVersion.current, path :+ "ks-version")
9696
}
9797

9898
val endian: Option[Endianness] = Endianness.fromYaml(srcMap.get("endian"), path)

0 commit comments

Comments
 (0)