From 0de4fc981c4b7650f93ac830bc56bbdd38dde703 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Wed, 19 Aug 2020 15:57:04 +0100 Subject: [PATCH] utils: If _srt_rm_rf cannot remove a directory, say why Signed-off-by: Simon McVittie <smcv@collabora.com> --- steam-runtime-tools/utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/steam-runtime-tools/utils.c b/steam-runtime-tools/utils.c index 525a9ccf7..3c88a429a 100644 --- a/steam-runtime-tools/utils.c +++ b/steam-runtime-tools/utils.c @@ -732,7 +732,10 @@ ftw_remove (const gchar *path, struct FTW *ftwbuf) { if (remove (path) < 0) - return -1; + { + g_debug ("Unable to remove %s: %s", path, g_strerror (errno)); + return -1; + } return 0; } -- GitLab