diff --git a/lib/graphviz/utils.rb b/lib/graphviz/utils.rb index 3343c84..32de289 100644 --- a/lib/graphviz/utils.rb +++ b/lib/graphviz/utils.rb @@ -55,7 +55,7 @@ def output_and_errors_from_command(cmd) #:nodoc: def output_from_command(cmd) #:nodoc: output, errors, status = output_and_errors_from_command(cmd) - if (status.nil? && (errors.nil? || errors.strip.empty?)) || status.zero? + if (status.nil? && (errors.nil? || errors.strip.empty?)) || status == 0 output else raise "Error from #{cmd}:\n#{errors}"