canny exists on (fatal) failure
Status: Beta
Brought to you by:
zone
There are lot's of
puts fatal_error
exit
passages in your code. This is not the ruby way; you should create and throw an exception; maybe something like this:
class CannyException < Exception
end
And at all passages you do as described above you should simply do the following:
raise CannyException.new(fatal_error)
So one can rescue the exception and do some error reportment.