]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
cleaned up platform/cli version mismatch text.
authorelijah <elijah@riseup.net>
Wed, 26 Jun 2013 00:52:21 +0000 (17:52 -0700)
committerelijah <elijah@riseup.net>
Wed, 26 Jun 2013 00:52:21 +0000 (17:52 -0700)
lib/leap_cli/leapfile.rb

index de630355404c4baab49a1dc9233ad532d884253a..bdf2c373cedba762a130482aabde4c3e73f11e4c 100644 (file)
@@ -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
 
         #