chore(json-edit): clarify errors
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
19dd0ff636
commit
ff2b59dd02
@ -37,7 +37,9 @@ impl JsonEditOptions {
|
||||
.ok_or(anyhow::anyhow!("path contains non utf-8 chars"))?,
|
||||
)
|
||||
.output()
|
||||
.context(anyhow::anyhow!("failed to run jq on file"))?;
|
||||
.context(anyhow::anyhow!(
|
||||
"failed to run jq on file, jq may not be installed or query was invalid"
|
||||
))?;
|
||||
|
||||
if !output.status.success() {
|
||||
let err_content = std::str::from_utf8(output.stderr.as_slice())?;
|
||||
|
Loading…
Reference in New Issue
Block a user