aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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