From: Steinar H. Gunderson Date: Tue, 16 Apr 2013 19:47:56 +0000 (+0200) Subject: Less confusing error message when realpath() fails. X-Git-Tag: 1.0.0~91 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=92100dd95f705d079c926783c9009fbb6d8b984a Less confusing error message when realpath() fails. --- diff --git a/main.cpp b/main.cpp index 064537c..8430c20 100644 --- 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); }