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:
parent
1539a976c8
commit
8630ef6df6
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue