Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54407 - /trunk/pkg-bindings/src/Source_Installation.cc
  • From: lslezak@xxxxxxxxxxxxxxxx
  • Date: Tue, 06 Jan 2009 16:23:19 -0000
  • Message-id: <E1LKEi7-0004Sv-Ae@xxxxxxxxxxxxxxxx>
Author: lslezak
Date: Tue Jan 6 17:23:19 2009
New Revision: 54407

URL: http://svn.opensuse.org/viewcvs/yast?rev=54407&view=rev
Log:
- better error messages

Modified:
trunk/pkg-bindings/src/Source_Installation.cc

Modified: trunk/pkg-bindings/src/Source_Installation.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source_Installation.cc?rev=54407&r1=54406&r2=54407&view=diff
==============================================================================
--- trunk/pkg-bindings/src/Source_Installation.cc (original)
+++ trunk/pkg-bindings/src/Source_Installation.cc Tue Jan 6 17:23:19 2009
@@ -81,8 +81,8 @@
}
else
{
- // error message (followed by directory name) (TODO improve the
message)
- _last_error.setLastError(_("Cannot create directory ") + path);
+ // error message (followed by directory name)
+ _last_error.setLastError(_("Target is not a directory: ") + path);
y2error("Target %s exists but it's not a directory", path.c_str());
return false;
}
@@ -120,8 +120,8 @@
// other error
else
{
- // error message (followed by directory name) (TODO improve the
message)
- _last_error.setLastError(_("Cannot create directory ") + path);
+ // error message (followed by directory name)
+ _last_error.setLastError(_("Cannot check status of directory ") +
path);
y2error("Cannot stat %s: %s", path.c_str(), ::strerror(errno));
return false;
}
@@ -198,7 +198,7 @@

if (prog.close())
{
- // error message (followed by detailed description) (TODO improve the
string)
+ // error message (followed by detailed description)
const std::string msg = _("Error: Cannot copy the cache to the target
directory\n");

// error message

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages