DEV: Include caller in error message for `Discourse#execute_command`.

This commit is contained in:
Guo Xiang Tan 2018-08-17 16:17:07 +08:00
parent 4b7c5ba162
commit be89f593f9
1 changed files with 1 additions and 1 deletions

View File

@ -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