Commit cd923f51 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a7c37ef1
......@@ -133,14 +133,8 @@ error _File::_errno(const char *op) {
static error _pathError(const char *op, const string &path, int syserr) {
char ebuf[128];
char *estr = strerror_r(syserr, ebuf, sizeof(ebuf));
printf("OP: '%s'\n", op);
printf("PATH: '%s'\n", path.c_str());
printf("ESTR: '%s'\n", estr);
//return fmt::errorf("%s %s: %s", op, path.c_str(), estr);
error err = fmt::errorf("%s %s: %s", op, path.c_str(), estr);
printf("ERR: '%s'\n", err->Error().c_str());
return err;
return fmt::errorf("%s %s: %s", op, path.c_str(), estr);
}
} // os::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment