bin/percheron in percheron-0.5.0 vs bin/percheron in percheron-0.6.0
- old
+ new
@@ -8,14 +8,14 @@
require 'percheron/cli'
$metastore = Metastore::Cabinet.new(File.join(ENV['HOME'], '.percheron', 'metastore.yaml'))
$logger = Logger.new(STDOUT)
-logger_level = Logger::WARN
+logger_level = Logger::INFO
-if ENV['VERBOSE'] == 'true'
- logger_level = Logger::INFO
+if ENV['QUIET'] == 'true'
+ logger_level = Logger::WARN
end
if ENV['DEBUG'] == 'true' || ENV['DOCKER_DEBUG'] == 'true'
require 'pry-byebug'
require 'awesome_print'
@@ -24,6 +24,10 @@
Docker.logger = $logger if ENV['DOCKER_DEBUG'] == 'true'
end
$logger.level = logger_level
-Percheron::CLI::MainCommand.run
+begin
+ Percheron::CLI::MainCommand.run
+rescue => e
+ puts Percheron::OhDear.new(e).generate
+end