mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Convert EROFS error
This commit is contained in:
parent
14aa3b3360
commit
68071ddf83
@ -153,6 +153,7 @@ static fs::error to_error(int e)
|
||||
case EINVAL: return fs::error::inval;
|
||||
case EACCES: return fs::error::acces;
|
||||
case ENOTEMPTY: return fs::error::notempty;
|
||||
case EROFS: return fs::error::readonly;
|
||||
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::acces: return "Access violation";
|
||||
case fs::error::notempty: return "Not empty";
|
||||
case fs::error::readonly: return "Read only";
|
||||
}
|
||||
|
||||
return unknown;
|
||||
|
@ -518,6 +518,7 @@ namespace fs
|
||||
exist,
|
||||
acces,
|
||||
notempty,
|
||||
readonly,
|
||||
};
|
||||
|
||||
// Error code returned
|
||||
|
Loading…
Reference in New Issue
Block a user