summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-24 12:54:45 -0800
committerelijah <elijah@riseup.net>2014-11-24 12:54:45 -0800
commit0354f6353ca92732d81b7eb5f37bdceeffa790b4 (patch)
treea6036a07c9dd25dae842c54583283299df36595e /lib/leap_cli
parent548f49182338151afcea3bada835ce646c367181 (diff)
minor: warn if env doesn't exist in `leap env pin`
Diffstat (limited to 'lib/leap_cli')
-rw-r--r--lib/leap_cli/commands/env.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/env.rb b/lib/leap_cli/commands/env.rb
index b2f585d..40ca959 100644
--- a/lib/leap_cli/commands/env.rb
+++ b/lib/leap_cli/commands/env.rb
@@ -32,6 +32,8 @@ module LeapCli
(environment && manager.environment_names.include?(environment))
LeapCli.leapfile.set('environment', environment)
log 0, :saved, "~/.leaprc with environment set to #{environment}."
+ else
+ bail! "There is no environment `#{environment}`"
end
end
end