better error reporting using rake watch

This commit is contained in:
Chris Eppstein 2010-01-30 16:26:08 -08:00
parent 72b084ccbe
commit 3a1735694f

View File

@ -29,6 +29,7 @@ task :watch do
`growlnotify -m "Compilation Complete" --image misc/success-icon.png; exit 0` `growlnotify -m "Compilation Complete" --image misc/success-icon.png; exit 0`
rescue Exception => e rescue Exception => e
puts ">>> ERROR: #{e.message} <<<" puts ">>> ERROR: #{e.message} <<<"
puts e.backtrace.join("\n")
`growlnotify -m "Compilation Error!" --image misc/error-icon.png; exit 0` `growlnotify -m "Compilation Error!" --image misc/error-icon.png; exit 0`
end end
end end