uncomp: better error message.
This commit is contained in:
parent
8b83058b69
commit
478739f1e7
@ -118,15 +118,15 @@ bool Uncomp::uncompressfile(const string& ifn,
|
|||||||
ExecCmd ex;
|
ExecCmd ex;
|
||||||
int status = ex.doexec(cmd, args, 0, &tfile);
|
int status = ex.doexec(cmd, args, 0, &tfile);
|
||||||
if (status || tfile.empty()) {
|
if (status || tfile.empty()) {
|
||||||
LOGERR("uncompressfile: doexec: failed for [" << ifn << "] status 0x" <<
|
LOGERR("uncompressfile: doexec: " << cmd << " " <<
|
||||||
status << "\n");
|
stringsToString(args) << " failed for [" <<
|
||||||
|
ifn << "] status 0x" << status << "\n");
|
||||||
if (!m_dir->wipe()) {
|
if (!m_dir->wipe()) {
|
||||||
LOGERR("uncompressfile: wipedir failed\n");
|
LOGERR("uncompressfile: wipedir failed\n");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (tfile[tfile.length() - 1] == '\n')
|
rtrimstring(tfile, "\n\r");
|
||||||
tfile.erase(tfile.length() - 1, 1);
|
|
||||||
m_tfile = tfile;
|
m_tfile = tfile;
|
||||||
m_srcpath = ifn;
|
m_srcpath = ifn;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user