lib/barista/compiler.rb in barista-0.4.1 vs lib/barista/compiler.rb in barista-0.4.2
- old
+ new
@@ -10,10 +10,10 @@
@coffee_available ||= system("which '#{self.bin_path}' >/dev/null 2>&1")
end
def self.check_availability!(silence = false)
available?.tap do |available|
- if Barista.exception_on_error? && !silence
+ if !available && Barista.exception_on_error? && !silence
raise CompilerUnavailableError, "The coffeescript compiler '#{self.bin_path}' could not be found."
end
end
end