From be89f593f93c75dc395724b3853f830cb91d2d8e Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 17 Aug 2018 16:17:07 +0800 Subject: [PATCH] DEV: Include caller in error message for `Discourse#execute_command`. --- lib/discourse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 8bb5ac29743..90c5faff19a 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -25,7 +25,7 @@ module Discourse if !status.success? failure_message = "#{failure_message}\n" if !failure_message.blank? - raise "#{failure_message}#{stderr}" + raise "#{caller[0]}: #{failure_message}#{stderr}" end stdout