lib/eco/api/common/loaders/base.rb in eco-helpers-2.0.57 vs lib/eco/api/common/loaders/base.rb in eco-helpers-2.0.58
- old
+ new
@@ -49,9 +49,17 @@
def micro
session.micro
end
+ def abort(msg, raising: true)
+ logger.error(msg)
+ if raising
+ raise msg
+ else
+ exit(1)
+ end
+ end
end
end
end
end
end