lib/zendesk_apps_tools/common.rb in xat-1.32.0 vs lib/zendesk_apps_tools/common.rb in xat-1.32.2
- old
+ new
@@ -5,9 +5,10 @@
def api_request(url, request = Faraday.new)
request.get(url)
end
def say_error_and_exit(msg)
+ raise msg if ENV.key?('ZAT_DEV')
say msg, :red
exit 1
end
def get_value_from_stdin(prompt, opts = {})