- better error message
authorJan Kupec <jkupec@suse.cz>
Sun, 26 Oct 2008 21:04:38 +0000 (21:04 +0000)
committerJan Kupec <jkupec@suse.cz>
Sun, 26 Oct 2008 21:04:38 +0000 (21:04 +0000)
src/install.cc

index 507a0d6..980aa34 100755 (executable)
@@ -508,13 +508,11 @@ void install_remove(Zypper & zypper,
       continue;
     }
 
-    // recognize missplaced command line options given as packages
-    // bnc#391644
+    // recognize missplaced command line options given as packages (bnc#391644)
     if ( str[0] == '-' )
     {
-      // FIXME show a message here, after string freeze
-      //zypper.out().error(boost::str(format(_("%s is not a valid package or capability name.") % str));
-      zypper.out().error(_("No valid arguments specified."));
+      zypper.out().error(boost::str(format(
+          _("'%s' is not a valid package or capability name.")) % str));
       zypper.setExitCode(ZYPPER_EXIT_ERR_INVALID_ARGS);
       ZYPP_THROW(ExitRequestException());
     }