DEV: Include caller in error message for `Discourse#execute_command`.
This commit is contained in:
parent
4b7c5ba162
commit
be89f593f9
|
@ -25,7 +25,7 @@ module Discourse
|
||||||
|
|
||||||
if !status.success?
|
if !status.success?
|
||||||
failure_message = "#{failure_message}\n" if !failure_message.blank?
|
failure_message = "#{failure_message}\n" if !failure_message.blank?
|
||||||
raise "#{failure_message}#{stderr}"
|
raise "#{caller[0]}: #{failure_message}#{stderr}"
|
||||||
end
|
end
|
||||||
|
|
||||||
stdout
|
stdout
|
||||||
|
|
Loading…
Reference in New Issue