lib/blocks/block.rb in bake-toolkit-2.42.1 vs lib/blocks/block.rb in bake-toolkit-2.42.2
- old
+ new
@@ -313,11 +313,13 @@
begin
yield
exceptionOccured = true
rescue Bake::SystemCommandFailed => scf # normal compilation error
rescue SystemExit => exSys
+ rescue AbortException => exSys
+ Bake::IDEInterface.instance.set_abort(true)
rescue Exception => ex1
- if not Bake::IDEInterface.instance.get_abort
+ if !Bake::IDEInterface.instance.get_abort
SyncOut.mutex.synchronize do
Bake.formatter.printError("Error: #{ex1.message}")
puts ex1.backtrace if Bake.options.debug
end
\ No newline at end of file