Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Improved error reporting from CLI initialization (#219)
Browse files Browse the repository at this point in the history
* Adding error handling for the CLI initialize to match behavior from command exceptions.

* Updating CHANGELOG and bumping VERSION
  • Loading branch information
micahlee committed May 30, 2018
1 parent c79006d commit 9ee224d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
# 6.1.1

* No longer displaying error stack traces by default when an exception occurs duing CLI
initialization (e.g when trying to open a missing conjur certificate file). Stack traces
can be enabled for all errors in the CLI by setting the environment variable `GLI_DEBUG=true`.

# [6.1.0](https://github.com/cyberark/conjur-cli/releases/tag/v6.1.0)

* Pin dependency 'conjur-api' to '~> 5.1'. This update adds authn-local support to the API. [conjur-api PR #131](https://github.com/cyberark/conjur-api-ruby/pull/131)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
6.1.0
6.1.1
3 changes: 3 additions & 0 deletions lib/conjur/cli.rb
Expand Up @@ -93,6 +93,9 @@ def init!
apply_config
load_plugins
commands_from 'conjur/command'
rescue => ex
stderr.puts "error: #{ex.message}"
raise if ENV['GLI_DEBUG'] == 'true'
end

def appliance_version
Expand Down

0 comments on commit 9ee224d

Please sign in to comment.