From 8630ef6df6d6b350925d3fa8f1a0695f356925e1 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 4 Jun 2020 18:50:58 -0400 Subject: [PATCH] WindowServer: Make perror() strings slightly more detailed. If one fails, it's now easier to see which one it is. --- Services/WindowServer/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Services/WindowServer/main.cpp b/Services/WindowServer/main.cpp index 4079b7546b..0bf4d7f107 100644 --- a/Services/WindowServer/main.cpp +++ b/Services/WindowServer/main.cpp @@ -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; }