Skip to content

Commit

Permalink
features.step_query_status: forward error details
Browse files Browse the repository at this point in the history
(if available)
  • Loading branch information
rohlem committed Jun 6, 2022
1 parent 7a4941f commit 4e2ebc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ function features.step_query_status(step_name, step_run_path)
return 'finished'
end
-- execute the run script which determines the run's status
local output = step_invoke_command_raw(step_name, step_run_path, 'status', "../../")
assert(output, "failed to query status of step '"..step_name.."' for run path '"..step_run_path.."'")
local output, return_status, error_details = step_invoke_command_raw(step_name, step_run_path, 'status', "../../")
assert(output, "failed to query status of step '"..step_name.."' for run path '"..step_run_path.."'"..(error_details and ":\n"..error_details or ""))
return type(output) == 'string' and util.cut_trailing_space(output)
or output
end
Expand Down

0 comments on commit 4e2ebc2

Please sign in to comment.