]> git.sesse.net Git - cubemap/commitdiff
Less confusing error message when realpath() fails.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 19:47:56 +0000 (21:47 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 19:47:56 +0000 (21:47 +0200)
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) {
        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) {
                exit(1);
        }
        if (realpath(config_filename.c_str(), config_filename_canon) == NULL) {
-               log_perror("realpath");
+               log_perror(config_filename.c_str());
                exit(1);
        }
 
                exit(1);
        }