From cdc037ed47e6d2a2816601e55e3966c4240e432a Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 5 Apr 2014 13:58:37 -0700 Subject: more graceful handling of error for `leap node add` (closes https://leap.se/code/issues/3725) --- lib/leap_cli/exceptions.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/leap_cli/exceptions.rb (limited to 'lib/leap_cli/exceptions.rb') 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 -- cgit v1.2.3