From e4cf10e49106255e06ce402e20e2302eb8e8bbd5 Mon Sep 17 00:00:00 2001 From: Mingun Date: Fri, 27 Sep 2024 00:47:17 +0500 Subject: [PATCH] Update error messages changed in https://github.com/kaitai-io/kaitai_struct_compiler/pull/309 --- formats_err/enum_unknown_inst_value.ksy | 2 +- formats_err/enum_unknown_seq.ksy | 2 +- formats_err/expr_cast_type_unknown.ksy | 2 +- formats_err/expr_enum_unknown.ksy | 2 +- formats_err/expr_field_unknown_endian_switch_cases.ksy | 2 +- formats_err/expr_field_unknown_endian_switch_on.ksy | 2 +- formats_err/expr_field_unknown_if_inst_pos.ksy | 2 +- formats_err/expr_field_unknown_if_inst_value.ksy | 2 +- formats_err/expr_field_unknown_if_seq.ksy | 2 +- formats_err/expr_field_unknown_inst_value_enum.ksy | 2 +- formats_err/expr_field_unknown_params_call.ksy | 2 +- formats_err/expr_field_unknown_switch_cases.ksy | 2 +- formats_err/expr_field_unknown_switch_on.ksy | 2 +- formats_err/expr_field_unknown_switch_params_call.ksy | 2 +- formats_err/expr_field_unknown_valid_any_of.ksy | 4 ++-- formats_err/expr_field_unknown_valid_eq_long.ksy | 2 +- formats_err/expr_field_unknown_valid_eq_short.ksy | 2 +- formats_err/expr_field_unknown_valid_expr.ksy | 2 +- formats_err/expr_field_unknown_valid_range.ksy | 4 ++-- formats_err/params_def_type_unknown.ksy | 2 +- formats_err/type_unknown.ksy | 2 +- formats_err/type_unknown_many.ksy | 6 +++--- formats_err/type_unknown_switch.ksy | 2 +- 23 files changed, 27 insertions(+), 27 deletions(-) diff --git a/formats_err/enum_unknown_inst_value.ksy b/formats_err/enum_unknown_inst_value.ksy index 4e1fb1e83..cbc0a94f6 100644 --- a/formats_err/enum_unknown_inst_value.ksy +++ b/formats_err/enum_unknown_inst_value.ksy @@ -1,5 +1,5 @@ # enum_unknown_inst_value.ksy: /instances/should_fail/enum: -# error: unable to find enum 'animal', searching from enum_unknown_inst_value +# error: unable to find enum 'animal', searching from 'enum_unknown_inst_value' # meta: id: enum_unknown_inst_value diff --git a/formats_err/enum_unknown_seq.ksy b/formats_err/enum_unknown_seq.ksy index e443f5b7c..5e4c86755 100644 --- a/formats_err/enum_unknown_seq.ksy +++ b/formats_err/enum_unknown_seq.ksy @@ -1,5 +1,5 @@ # enum_unknown_seq.ksy: /seq/0/enum: -# error: unable to find enum 'animal', searching from enum_unknown_seq +# error: unable to find enum 'animal', searching from 'enum_unknown_seq' # meta: id: enum_unknown_seq diff --git a/formats_err/expr_cast_type_unknown.ksy b/formats_err/expr_cast_type_unknown.ksy index 9963795cb..ff0afff57 100644 --- a/formats_err/expr_cast_type_unknown.ksy +++ b/formats_err/expr_cast_type_unknown.ksy @@ -1,5 +1,5 @@ # expr_cast_type_unknown.ksy: /instances/foo_bar/value: -# error: unable to find type 'bar', searching from expr_cast_type_unknown +# error: unable to find type 'bar', searching from 'expr_cast_type_unknown' # meta: id: expr_cast_type_unknown diff --git a/formats_err/expr_enum_unknown.ksy b/formats_err/expr_enum_unknown.ksy index db3e02045..bf57eccec 100644 --- a/formats_err/expr_enum_unknown.ksy +++ b/formats_err/expr_enum_unknown.ksy @@ -1,5 +1,5 @@ # expr_enum_unknown.ksy: /seq/1/if: -# error: unable to find enum 'unknown_enum', searching from expr_enum_unknown +# error: unable to find enum 'unknown_enum', searching from 'expr_enum_unknown' # meta: id: expr_enum_unknown diff --git a/formats_err/expr_field_unknown_endian_switch_cases.ksy b/formats_err/expr_field_unknown_endian_switch_cases.ksy index 66d809193..7d17b076e 100644 --- a/formats_err/expr_field_unknown_endian_switch_cases.ksy +++ b/formats_err/expr_field_unknown_endian_switch_cases.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_endian_switch_cases.ksy: /meta/endian/cases/Name(identifier(qux)): -# error: unable to access 'qux' in expr_field_unknown_endian_switch_cases context +# error: unable to access 'qux' in 'expr_field_unknown_endian_switch_cases' context # meta: id: expr_field_unknown_endian_switch_cases diff --git a/formats_err/expr_field_unknown_endian_switch_on.ksy b/formats_err/expr_field_unknown_endian_switch_on.ksy index 555d5eb85..0455aa085 100644 --- a/formats_err/expr_field_unknown_endian_switch_on.ksy +++ b/formats_err/expr_field_unknown_endian_switch_on.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_endian_switch_on.ksy: /meta/endian/switch-on: -# error: unable to access 'qux' in expr_field_unknown_endian_switch_on context +# error: unable to access 'qux' in 'expr_field_unknown_endian_switch_on' context # meta: id: expr_field_unknown_endian_switch_on diff --git a/formats_err/expr_field_unknown_if_inst_pos.ksy b/formats_err/expr_field_unknown_if_inst_pos.ksy index 3c59851d5..3dfabe33f 100644 --- a/formats_err/expr_field_unknown_if_inst_pos.ksy +++ b/formats_err/expr_field_unknown_if_inst_pos.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_if_inst_pos.ksy: /instances/foo/if: -# error: unable to access 'bar' in expr_field_unknown_if_inst_pos context +# error: unable to access 'bar' in 'expr_field_unknown_if_inst_pos' context # meta: id: expr_field_unknown_if_inst_pos diff --git a/formats_err/expr_field_unknown_if_inst_value.ksy b/formats_err/expr_field_unknown_if_inst_value.ksy index 761f2f152..b8b6208a0 100644 --- a/formats_err/expr_field_unknown_if_inst_value.ksy +++ b/formats_err/expr_field_unknown_if_inst_value.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_if_inst_value.ksy: /instances/foo/if: -# error: unable to access 'bar' in expr_field_unknown_if_inst_value context +# error: unable to access 'bar' in 'expr_field_unknown_if_inst_value' context # meta: id: expr_field_unknown_if_inst_value diff --git a/formats_err/expr_field_unknown_if_seq.ksy b/formats_err/expr_field_unknown_if_seq.ksy index c4b5ef03e..5bd85aa68 100644 --- a/formats_err/expr_field_unknown_if_seq.ksy +++ b/formats_err/expr_field_unknown_if_seq.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_if_seq.ksy: /seq/0/if: -# error: unable to access 'bar' in expr_field_unknown_if_seq context +# error: unable to access 'bar' in 'expr_field_unknown_if_seq' context # meta: id: expr_field_unknown_if_seq diff --git a/formats_err/expr_field_unknown_inst_value_enum.ksy b/formats_err/expr_field_unknown_inst_value_enum.ksy index 6023a0234..28ed69a82 100644 --- a/formats_err/expr_field_unknown_inst_value_enum.ksy +++ b/formats_err/expr_field_unknown_inst_value_enum.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_inst_value_enum.ksy: /instances/foo/value: -# error: unable to access 'bar' in expr_field_unknown_inst_value_enum context +# error: unable to access 'bar' in 'expr_field_unknown_inst_value_enum' context # meta: id: expr_field_unknown_inst_value_enum diff --git a/formats_err/expr_field_unknown_params_call.ksy b/formats_err/expr_field_unknown_params_call.ksy index 1086c4ae8..18336d34d 100644 --- a/formats_err/expr_field_unknown_params_call.ksy +++ b/formats_err/expr_field_unknown_params_call.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_params_call.ksy: /seq/0/type: -# error: unable to access 'bar' in expr_field_unknown_params_call context +# error: unable to access 'bar' in 'expr_field_unknown_params_call' context # meta: id: expr_field_unknown_params_call diff --git a/formats_err/expr_field_unknown_switch_cases.ksy b/formats_err/expr_field_unknown_switch_cases.ksy index b85888820..d61f56880 100644 --- a/formats_err/expr_field_unknown_switch_cases.ksy +++ b/formats_err/expr_field_unknown_switch_cases.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_switch_cases.ksy: /seq/1/type/cases/Name(identifier(ahem)): -# error: unable to access 'ahem' in expr_field_unknown_switch_cases context +# error: unable to access 'ahem' in 'expr_field_unknown_switch_cases' context # meta: id: expr_field_unknown_switch_cases diff --git a/formats_err/expr_field_unknown_switch_on.ksy b/formats_err/expr_field_unknown_switch_on.ksy index 6fd504c84..dd6d7ec2e 100644 --- a/formats_err/expr_field_unknown_switch_on.ksy +++ b/formats_err/expr_field_unknown_switch_on.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_switch_on.ksy: /seq/0/type/switch-on: -# error: unable to access 'bar' in expr_field_unknown_switch_on context +# error: unable to access 'bar' in 'expr_field_unknown_switch_on' context # meta: id: expr_field_unknown_switch_on diff --git a/formats_err/expr_field_unknown_switch_params_call.ksy b/formats_err/expr_field_unknown_switch_params_call.ksy index e0b29e078..c88bec27c 100644 --- a/formats_err/expr_field_unknown_switch_params_call.ksy +++ b/formats_err/expr_field_unknown_switch_params_call.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_switch_params_call.ksy: /seq/0/type/cases/Bool(true): -# error: unable to access 'bar' in expr_field_unknown_switch_params_call context +# error: unable to access 'bar' in 'expr_field_unknown_switch_params_call' context # meta: id: expr_field_unknown_switch_params_call diff --git a/formats_err/expr_field_unknown_valid_any_of.ksy b/formats_err/expr_field_unknown_valid_any_of.ksy index 846d4e031..2a77ef622 100644 --- a/formats_err/expr_field_unknown_valid_any_of.ksy +++ b/formats_err/expr_field_unknown_valid_any_of.ksy @@ -1,8 +1,8 @@ # expr_field_unknown_valid_any_of.ksy: /seq/0/valid/any-of/1: -# error: unable to access 'bar' in expr_field_unknown_valid_any_of context +# error: unable to access 'bar' in 'expr_field_unknown_valid_any_of' context # # expr_field_unknown_valid_any_of.ksy: /seq/0/valid/any-of/3: -# error: unable to access 'qux' in expr_field_unknown_valid_any_of context +# error: unable to access 'qux' in 'expr_field_unknown_valid_any_of' context # meta: id: expr_field_unknown_valid_any_of diff --git a/formats_err/expr_field_unknown_valid_eq_long.ksy b/formats_err/expr_field_unknown_valid_eq_long.ksy index 2a131e0e2..84da5a533 100644 --- a/formats_err/expr_field_unknown_valid_eq_long.ksy +++ b/formats_err/expr_field_unknown_valid_eq_long.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_valid_eq_long.ksy: /seq/0/valid/eq: -# error: unable to access 'bar' in expr_field_unknown_valid_eq_long context +# error: unable to access 'bar' in 'expr_field_unknown_valid_eq_long' context # meta: id: expr_field_unknown_valid_eq_long diff --git a/formats_err/expr_field_unknown_valid_eq_short.ksy b/formats_err/expr_field_unknown_valid_eq_short.ksy index ae6e183ee..b4394ec52 100644 --- a/formats_err/expr_field_unknown_valid_eq_short.ksy +++ b/formats_err/expr_field_unknown_valid_eq_short.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_valid_eq_short.ksy: /seq/0/valid: -# error: unable to access 'bar' in expr_field_unknown_valid_eq_short context +# error: unable to access 'bar' in 'expr_field_unknown_valid_eq_short' context # meta: id: expr_field_unknown_valid_eq_short diff --git a/formats_err/expr_field_unknown_valid_expr.ksy b/formats_err/expr_field_unknown_valid_expr.ksy index 96f0ff89f..44dc54ef3 100644 --- a/formats_err/expr_field_unknown_valid_expr.ksy +++ b/formats_err/expr_field_unknown_valid_expr.ksy @@ -1,5 +1,5 @@ # expr_field_unknown_valid_expr.ksy: /seq/0/valid/expr: -# error: unable to access 'bar' in expr_field_unknown_valid_expr context +# error: unable to access 'bar' in 'expr_field_unknown_valid_expr' context # meta: id: expr_field_unknown_valid_expr diff --git a/formats_err/expr_field_unknown_valid_range.ksy b/formats_err/expr_field_unknown_valid_range.ksy index 6e8a258a4..cfedcc3a0 100644 --- a/formats_err/expr_field_unknown_valid_range.ksy +++ b/formats_err/expr_field_unknown_valid_range.ksy @@ -1,8 +1,8 @@ # expr_field_unknown_valid_range.ksy: /seq/0/valid/min: -# error: unable to access 'bar' in expr_field_unknown_valid_range context +# error: unable to access 'bar' in 'expr_field_unknown_valid_range' context # # expr_field_unknown_valid_range.ksy: /seq/0/valid/max: -# error: unable to access 'qux' in expr_field_unknown_valid_range context +# error: unable to access 'qux' in 'expr_field_unknown_valid_range' context # meta: id: expr_field_unknown_valid_range diff --git a/formats_err/params_def_type_unknown.ksy b/formats_err/params_def_type_unknown.ksy index 7597bd786..5f963cdf1 100644 --- a/formats_err/params_def_type_unknown.ksy +++ b/formats_err/params_def_type_unknown.ksy @@ -1,5 +1,5 @@ # params_def_type_unknown.ksy: /params/0/type: -# error: unable to find type 'bar', searching from params_def_type_unknown +# error: unable to find type 'bar', searching from 'params_def_type_unknown' # meta: id: params_def_type_unknown diff --git a/formats_err/type_unknown.ksy b/formats_err/type_unknown.ksy index 6e29cbed8..27748c113 100644 --- a/formats_err/type_unknown.ksy +++ b/formats_err/type_unknown.ksy @@ -1,5 +1,5 @@ # type_unknown.ksy: /seq/0/type: -# error: unable to find type 'some_unknown_name', searching from type_unknown +# error: unable to find type 'some_unknown_name', searching from 'type_unknown' # meta: id: type_unknown diff --git a/formats_err/type_unknown_many.ksy b/formats_err/type_unknown_many.ksy index 0cdce035b..5bac50467 100644 --- a/formats_err/type_unknown_many.ksy +++ b/formats_err/type_unknown_many.ksy @@ -1,11 +1,11 @@ # type_unknown_many.ksy: /seq/0/type: -# error: unable to find type 'some_unknown_name', searching from type_unknown_many +# error: unable to find type 'some_unknown_name', searching from 'type_unknown_many' # # type_unknown_many.ksy: /seq/1/type: -# error: unable to find type 'also_unknown_name', searching from type_unknown_many +# error: unable to find type 'also_unknown_name', searching from 'type_unknown_many' # # type_unknown_many.ksy: /seq/2/enum: -# error: unable to find enum 'unknown_enum', searching from type_unknown_many +# error: unable to find enum 'unknown_enum', searching from 'type_unknown_many' # meta: id: type_unknown_many diff --git a/formats_err/type_unknown_switch.ksy b/formats_err/type_unknown_switch.ksy index 879be41ac..201c3fae6 100644 --- a/formats_err/type_unknown_switch.ksy +++ b/formats_err/type_unknown_switch.ksy @@ -1,5 +1,5 @@ # type_unknown_switch.ksy: /seq/0/type/cases/IntNum(42): -# error: unable to find type 'some_unknown_name', searching from type_unknown_switch +# error: unable to find type 'some_unknown_name', searching from 'type_unknown_switch' # meta: id: type_unknown_switch