You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove generic rescues to let errors bubble up (#10)
* Refactor get_service and scale_out methods
Removed unnecessary begin-rescue blocks for service retrieval and scaling.
* Bump version from 0.7.0 to 0.8.0
* Refactor metric retrieval for New Relic API
* Remove generic rescue for network errors
Removed generic rescue block for network errors in worker.rb.
* Change exception handling from RuntimeError to ApplicationError
* Fix specs
* Classify errors as permanent or recoverable
Copy file name to clipboardExpand all lines: lib/scaltainer/command.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ def self.parse(args)
25
25
opts.on("--enable-newrelic-reporting","Enable metrics pushing to New Relic")do
26
26
newrelic_license_key=ENV['NEW_RELIC_LICENSE_KEY']
27
27
newrelic_app_name=ENV['NEW_RELIC_APP_NAME']
28
-
raise'Must set NEW_RELIC_LICENSE_KEY environment variable if --enable-newrelic-reporting is set'ifnewrelic_license_key.nil? || newrelic_license_key == ""
29
-
raise'Must set NEW_RELIC_APP_NAME environment variable if --enable-newrelic-reporting is set'ifnewrelic_app_name.nil? || newrelic_app_name == ""
28
+
raiseConfigurationError.new'Must set NEW_RELIC_LICENSE_KEY environment variable if --enable-newrelic-reporting is set'ifnewrelic_license_key.nil? || newrelic_license_key == ""
29
+
raiseConfigurationError.new'Must set NEW_RELIC_APP_NAME environment variable if --enable-newrelic-reporting is set'ifnewrelic_app_name.nil? || newrelic_app_name == ""
30
30
enable_newrelic_reporting=true
31
31
end
32
32
opts.on("-v","--version","Show version and exit")do
0 commit comments