From: John Darrington Date: Sun, 2 Aug 2020 17:17:19 +0000 (+0200) Subject: src/ui/gui/psppire-conf.c: On error, give a reason for failure to create file X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44a2389f517a6cc60a2b8b0f1d7da1eabb410133;p=pspp src/ui/gui/psppire-conf.c: On error, give a reason for failure to create file --- diff --git a/src/ui/gui/psppire-conf.c b/src/ui/gui/psppire-conf.c index 835d58c127..eb65b63ad9 100644 --- a/src/ui/gui/psppire-conf.c +++ b/src/ui/gui/psppire-conf.c @@ -84,7 +84,8 @@ flush_conf (PsppireConf *conf) if (! g_file_set_contents (conf->filename, kf, length, NULL)) { - g_warning ("Cannot open %s for writing", conf->filename); + char *msg = strerror (errno); + g_warning ("Cannot open %s for writing: %s", conf->filename, msg); } g_free (kf);