fix(format): only check return code, not signal
This commit is contained in:
+2
-2
@@ -280,7 +280,7 @@ function M.format(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if
|
if
|
||||||
not opts.ignore_ret and (resp.code ~= 0 or resp.signal ~= 0)
|
not opts.ignore_ret and resp.code ~= 0
|
||||||
or (opts.output ~= "stderr" and stderr)
|
or (opts.output ~= "stderr" and stderr)
|
||||||
then
|
then
|
||||||
local msg = ""
|
local msg = ""
|
||||||
@@ -288,7 +288,7 @@ function M.format(opts)
|
|||||||
msg = ":\n" .. stderr
|
msg = ":\n" .. stderr
|
||||||
end
|
end
|
||||||
|
|
||||||
M.err(("Failed to format%s"):format(msg))
|
M.err(("Failed to format (%d)%s"):format(resp.code, msg))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user