mirror of
https://github.com/vgough/encfs.git
synced 2025-06-20 11:47:58 +02:00
Actually print error message in withCipherPath and withFileNode
This commit is contained in:
parent
cc274dca63
commit
0053cd7a70
@ -93,7 +93,7 @@ static int withCipherPath(const char *opName, const char *path,
|
|||||||
} else if (!passReturnCode)
|
} else if (!passReturnCode)
|
||||||
res = ESUCCESS;
|
res = ESUCCESS;
|
||||||
} catch (rlog::Error &err) {
|
} catch (rlog::Error &err) {
|
||||||
rError("error caught in %s", opName);
|
rError("withCipherPath: error caught in %s: %s", opName, err.message());
|
||||||
err.log(_RLWarningChannel);
|
err.log(_RLWarningChannel);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
@ -123,7 +123,7 @@ static int withFileNode(const char *opName, const char *path,
|
|||||||
|
|
||||||
if (res < 0) rInfo("%s error: %s", opName, strerror(-res));
|
if (res < 0) rInfo("%s error: %s", opName, strerror(-res));
|
||||||
} catch (rlog::Error &err) {
|
} catch (rlog::Error &err) {
|
||||||
rError("error caught in %s", opName);
|
rError("withFileNode: error caught in %s: %s", opName, err.message());
|
||||||
err.log(_RLWarningChannel);
|
err.log(_RLWarningChannel);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user