Skip to content

Commit a3dd5e0

Browse files
committed
doc: enhance ui and error documentation
1 parent 4dfd0d0 commit a3dd5e0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

kani-driver/src/args/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ pub struct VerificationArgs {
242242
#[arg(long)]
243243
pub default_unwind: Option<u32>,
244244

245+
/// Output the verification results to a JSON file at the specified path.
246+
/// This feature is unstable and it requires `-Z unstable-options` to be used
245247
#[arg(long)]
246248
pub export_json: Option<PathBuf>,
247249

scripts/validate_json_export.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,16 @@ def validate_field_path(json_file, field_path, schema=None):
153153

154154
for part in parts:
155155
if part not in current_data:
156-
print(f"ERROR: Field path '{field_path}' not found in data")
156+
print(
157+
f"ERROR: Field path '{field_path}' not found in data. Missing part: '{part}'"
158+
)
157159
return False
158160
current_data = current_data[part]
159161

160162
if part not in current_schema:
161-
print(f"ERROR: Field path '{field_path}' not found in schema template")
163+
print(
164+
f"ERROR: Field path '{field_path}' not found in schema template. Missing part: '{part}'"
165+
)
162166
return False
163167
current_schema = current_schema[part]
164168

0 commit comments

Comments
 (0)