Class: Snapshot::ErrorHandler
- Inherits:
-
Object
- Object
- Snapshot::ErrorHandler
- Defined in:
- snapshot/lib/snapshot/error_handler.rb
Class Method Summary collapse
-
.handle_test_error(output, return_code) ⇒ Object
This method should raise an exception in any case, as the return code indicated a failed build.
Class Method Details
.handle_test_error(output, return_code) ⇒ Object
This method should raise an exception in any case, as the return code indicated a failed build
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'snapshot/lib/snapshot/error_handler.rb', line 8 def handle_test_error(output, return_code) # The order of the handling below is import if return_code == 65 UI.user_error!("Tests failed - check out the log above") end case output when /com\.apple\.CoreSimulator\.SimError/ UI.important("The simulator failed to launch - retrying...") when /is not configured for Running/ UI.user_error!("Scheme is not properly configured, make sure to check out the snapshot README") end end |