Fix error message: print the exit status, not the string "$?".
authorTom Clegg <tom@curoverse.com>
Tue, 31 Dec 2013 18:48:28 +0000 (10:48 -0800)
committerTom Clegg <tom@curoverse.com>
Tue, 31 Dec 2013 18:48:28 +0000 (10:48 -0800)
apps/workbench/app/controllers/collections_controller.rb

index a5fed9d9a368cbc7194d4db2b50e7cd2de19de62..3cea60b9d95bbbde9d446e574575971f6baf1320 100644 (file)
@@ -121,7 +121,7 @@ class CollectionsController < ApplicationController
           yield buf
         end
       end
-      Rails.logger.warn("#{@opts[:uuid]}/#{@opts[:file]}: $?") if $? != 0
+      Rails.logger.warn("#{@opts[:uuid]}/#{@opts[:file]}: #{$?}") if $? != 0
     end
   end
 end