aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-25 17:52:21 -0700
committerelijah <elijah@riseup.net>2013-06-25 17:52:21 -0700
commit663261bb315ee1d1c693398c7f5ef02cefaaffc1 (patch)
tree474624706ed7fb9a0d1d56c5d50171dbedb64833
parent56f4b8b78fa02f4ec72dc0d1e04013da20fc78fa (diff)
downloadleap_cli-663261bb315ee1d1c693398c7f5ef02cefaaffc1.tar.gz
leap_cli-663261bb315ee1d1c693398c7f5ef02cefaaffc1.tar.bz2
cleaned up platform/cli version mismatch text.
-rw-r--r--lib/leap_cli/leapfile.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/leap_cli/leapfile.rb b/lib/leap_cli/leapfile.rb
index de63035..bdf2c37 100644
--- a/lib/leap_cli/leapfile.rb
+++ b/lib/leap_cli/leapfile.rb
@@ -41,12 +41,14 @@ module LeapCli
#
require "#{@platform_directory_path}/platform.rb"
if !Leap::Platform.compatible_with_cli?(LeapCli::VERSION)
- Util.bail! "This leap command (version #{LeapCli::VERSION}) is not compatible with the platform #{@platform_directory_path} " +
- "(which requires leap command #{Platform.compatible_cli.first} to #{Platform.compatible_cli.last})."
+ Util.bail! "This leap command (v#{LeapCli::VERSION}) " +
+ "is not compatible with the platform #{@platform_directory_path} (v#{Leap::Platform.version}). " +
+ "You need leap command #{Leap::Platform.compatible_cli.first} to #{Leap::Platform.compatible_cli.last}."
end
if !Leap::Platform.version_in_range?(LeapCli::COMPATIBLE_PLATFORM_VERSION)
- Util.bail! "This leap command (version #{LeapCli::VERSION}) is not compatible with the platform #{@platform_directory_path} " +
- "(leap command requires which requires platform #{LeapCli::COMPATIBLE_PLATFORM_VERSION.first} to #{LeapCli::COMPATIBLE_PLATFORM_VERSION.last})."
+ Util.bail! "This leap command (v#{LeapCli::VERSION}) " +
+ "is not compatible with the platform #{@platform_directory_path} (v#{Leap::Platform.version}). " +
+ "You need platform version #{LeapCli::COMPATIBLE_PLATFORM_VERSION.first} to #{LeapCli::COMPATIBLE_PLATFORM_VERSION.last}."
end
#