Module: Laravel
- Defined in:
- lib/laravel/app.rb,
lib/laravel/errors.rb,
lib/laravel/helpers.rb,
lib/laravel/version.rb,
lib/laravel/app_support.rb,
lib/laravel/configuration.rb
Defined Under Namespace
Modules: AppSupport, Helpers Classes: App, Configuration, ExpectationNotMetError, LaravelError, LaravelNotFoundError
Constant Summary collapse
- VERSION =
"0.7.2"
Class Method Summary collapse
-
.handle_error(error, debug = false) ⇒ Object
Show an error the user in Red, and exit the script, since this is an error!.
Class Method Details
.handle_error(error, debug = false) ⇒ Object
Show an error the user in Red, and exit the script, since this is an error!
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/laravel/errors.rb', line 26 def self.handle_error(error, debug = false) shell = Thor::Shell::Color.new shell.say_status("!!ERROR!!", error., :red) if debug puts puts "--" puts error.backtrace end exit 128 end |