fix: keep snapshots free of host paths and use the documented error phases

- runtime_error_json reports module_id/relative_path/line/column only; an
  absolute host path is environment data and must not be embedded in a
  shareable Observation snapshot.
- A bad --arg is a pre-start option error: report phase "options" as the
  schema defines instead of "prepare".
- Document that any provider transport failure, including an over-budget
  request frame, kills and reaps the helper and is never retried.
This commit is contained in:
cflmy committed 2026-11-24 21:06:05 +08:00
1 parent 847cf9fe33
commit 765c8350b0
5 files changed
+13 -17

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ pub fn execute(
let stream = events.as_ref();
let named_args = match named_args {
Ok(args) => args,
Err(message) => return fail(stream, "prepare", "cli.invalid_argument", &message, 2),
Err(message) => return fail(stream, "options", "cli.invalid_argument", &message, 2),
};
let options = PrepareOptions {
plugins: settings.plugins.clone(),