aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alaveteli_external_command.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-03-20 11:58:09 +0000
committerLouise Crow <louise.crow@gmail.com>2015-03-23 18:28:28 +0000
commitc050a60b2e27cabfd8f1e753abb8f595146c0ffd (patch)
tree6829bdac2f51779f95e864e12f59e842ccd5079d /lib/alaveteli_external_command.rb
parent19c4f3830fbf93d18e4ae8262b36becfd62aae28 (diff)
Give messages standard start text.
To make it easier to find them in other output.
Diffstat (limited to 'lib/alaveteli_external_command.rb')
-rw-r--r--lib/alaveteli_external_command.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/alaveteli_external_command.rb b/lib/alaveteli_external_command.rb
index 548a509b6..d32af4c90 100644
--- a/lib/alaveteli_external_command.rb
+++ b/lib/alaveteli_external_command.rb
@@ -30,16 +30,16 @@ module AlaveteliExternalCommand
if !xc.exited
# Crash or timeout
if xc.timed_out
- $stderr.puts(%Q[Command "#{program_name} #{args.join(' ')}" timed out at #{opts[:timeout]}s])
+ $stderr.puts(%Q[External Command: "#{program_name} #{args.join(' ')}" timed out at #{opts[:timeout]}s])
else
- $stderr.puts(%Q[Command ""#{program_name} #{args.join(' ')}" exited abnormally])
+ $stderr.puts(%Q[External Command: "#{program_name} #{args.join(' ')}" exited abnormally])
end
$stderr.print(xc.err)
return nil
elsif xc.status != 0
# Error
- $stderr.puts(%Q[Error from command "#{program_name} #{args.join(' ')}":])
+ $stderr.puts(%Q[External Command: Error from command "#{program_name} #{args.join(' ')}":])
$stderr.print(xc.err)
return nil
else