diff options
author | elijah <elijah@riseup.net> | 2014-04-05 13:58:37 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-04-05 13:58:37 -0700 |
commit | cdc037ed47e6d2a2816601e55e3966c4240e432a (patch) | |
tree | d5a3999ccee5107a5bd927e62765003c5928f2fd /lib/leap_cli/exceptions.rb | |
parent | f3b405f62b06551bb0e62e5594259bb6be8516f9 (diff) | |
download | leap_cli-cdc037ed47e6d2a2816601e55e3966c4240e432a.tar.gz leap_cli-cdc037ed47e6d2a2816601e55e3966c4240e432a.tar.bz2 |
more graceful handling of error for `leap node add` (closes https://leap.se/code/issues/3725)
Diffstat (limited to 'lib/leap_cli/exceptions.rb')
-rw-r--r-- | lib/leap_cli/exceptions.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/leap_cli/exceptions.rb b/lib/leap_cli/exceptions.rb new file mode 100644 index 0000000..cd27f14 --- /dev/null +++ b/lib/leap_cli/exceptions.rb @@ -0,0 +1,11 @@ +module LeapCli + + class ConfigError < StandardError + attr_accessor :node + def initialize(node, msg) + @node = node + super(msg) + end + end + +end
\ No newline at end of file |