]> git.sesse.net Git - cubemap/blobdiff - main.cpp
Less confusing error message when realpath() fails.
[cubemap] / main.cpp
index 064537cd79a0572ef706e66c52106ce522f8026d..8430c207134ee026bb9fcb45713eea70ee0c746e 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -275,11 +275,11 @@ int main(int argc, char **argv)
        char config_filename_canon[PATH_MAX];
 
        if (realpath(argv[0], argv0_canon) == NULL) {
-               log_perror("realpath");
+               log_perror(argv[0]);
                exit(1);
        }
        if (realpath(config_filename.c_str(), config_filename_canon) == NULL) {
-               log_perror("realpath");
+               log_perror(config_filename.c_str());
                exit(1);
        }