summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-06 15:57:47 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-06 15:57:47 +0100
commite961d5cdb3ca139361a47e626ddef8dba109a195 (patch)
tree805d9118e2cd0f62fc16c11cf2de39c8556477bb
parent4b9062c3a7d38c41ba970e630e759a899b171e71 (diff)
downloadmerchant-e961d5cdb3ca139361a47e626ddef8dba109a195.tar.gz
merchant-e961d5cdb3ca139361a47e626ddef8dba109a195.tar.bz2
merchant-e961d5cdb3ca139361a47e626ddef8dba109a195.zip
improve logging for #7549
-rw-r--r--src/backend/taler-merchant-httpd_statics.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_statics.c b/src/backend/taler-merchant-httpd_statics.c
index 0cf54713..6b4ff351 100644
--- a/src/backend/taler-merchant-httpd_statics.c
+++ b/src/backend/taler-merchant-httpd_statics.c
@@ -298,12 +298,16 @@ TMH_statics_init ()
ret = GNUNET_DISK_directory_scan (dn,
&load_static_file,
NULL);
- GNUNET_free (dn);
if (-1 == ret)
{
- GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Could not load static resources from `%s': %s\n",
+ dn,
+ strerror (errno));
+ GNUNET_free (dn);
return GNUNET_SYSERR;
}
+ GNUNET_free (dn);
return GNUNET_OK;
}