1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:07:34 +00:00

WindowServer: Make perror() strings slightly more detailed.

If one fails, it's now easier to see which one it is.
This commit is contained in:
Nico Weber 2020-06-04 18:50:58 -04:00 committed by Andreas Kling
parent 1539a976c8
commit 8630ef6df6

View file

@ -45,22 +45,22 @@ int main(int, char**)
}
if (unveil("/res", "r") < 0) {
perror("unveil");
perror("unveil /res");
return 1;
}
if (unveil("/tmp", "cw") < 0) {
perror("unveil");
perror("unveil /tmp cw");
return 1;
}
if (unveil("/etc/WindowServer/WindowServer.ini", "rwc") < 0) {
perror("unveil");
perror("unveil /etc/WindowServer/WindowServer.ini");
return 1;
}
if (unveil("/dev", "rw") < 0) {
perror("unveil");
perror("unveil /dev rw");
return 1;
}
@ -97,12 +97,12 @@ int main(int, char**)
auto mm = WindowServer::MenuManager::construct();
if (unveil("/tmp", "") < 0) {
perror("unveil");
perror("unveil /tmp");
return 1;
}
if (unveil("/dev", "") < 0) {
perror("unveil");
perror("unveil /dev");
return 1;
}