mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Convert EROFS error
This commit is contained in:
parent
14aa3b3360
commit
68071ddf83
2 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,7 @@ static fs::error to_error(int e)
|
||||||
case EINVAL: return fs::error::inval;
|
case EINVAL: return fs::error::inval;
|
||||||
case EACCES: return fs::error::acces;
|
case EACCES: return fs::error::acces;
|
||||||
case ENOTEMPTY: return fs::error::notempty;
|
case ENOTEMPTY: return fs::error::notempty;
|
||||||
|
case EROFS: return fs::error::readonly;
|
||||||
default: fmt::throw_exception("Unknown system error: %d.", e);
|
default: fmt::throw_exception("Unknown system error: %d.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1751,6 +1752,7 @@ void fmt_class_string<fs::error>::format(std::string& out, u64 arg)
|
||||||
case fs::error::exist: return "Already exists";
|
case fs::error::exist: return "Already exists";
|
||||||
case fs::error::acces: return "Access violation";
|
case fs::error::acces: return "Access violation";
|
||||||
case fs::error::notempty: return "Not empty";
|
case fs::error::notempty: return "Not empty";
|
||||||
|
case fs::error::readonly: return "Read only";
|
||||||
}
|
}
|
||||||
|
|
||||||
return unknown;
|
return unknown;
|
||||||
|
|
|
@ -518,6 +518,7 @@ namespace fs
|
||||||
exist,
|
exist,
|
||||||
acces,
|
acces,
|
||||||
notempty,
|
notempty,
|
||||||
|
readonly,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Error code returned
|
// Error code returned
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue