From 92100dd95f705d079c926783c9009fbb6d8b984a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 16 Apr 2013 21:47:56 +0200 Subject: [PATCH] Less confusing error message when realpath() fails. --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2