Method: Pebbles::Helpers#styled_error
- Defined in:
- lib/pebbles/helpers.rb
#styled_error(error, message = 'Pebblescape client internal error.') ⇒ Object
272 273 274 275 276 277 278 |
# File 'lib/pebbles/helpers.rb', line 272 def styled_error(error, ='Pebblescape client internal error.') if Pebbles::Helpers.error_with_failure display("failed") Pebbles::Helpers.error_with_failure = false end $stderr.puts(format_error(error, )) end |