diff --git a/steam-runtime-tools/resolve-in-sysroot.c b/steam-runtime-tools/resolve-in-sysroot.c
index 21965157ee34bc16262527ab77dfc6487fe2496e..c4dbb581d213483b9f20993ba2e05e7870ecbdba 100644
--- a/steam-runtime-tools/resolve-in-sysroot.c
+++ b/steam-runtime-tools/resolve-in-sysroot.c
@@ -313,12 +313,20 @@ _srt_resolve_in_sysroot (int sysroot,
       if (flags & SRT_RESOLVE_FLAGS_DIRECTORY)
         {
           if (!glnx_opendirat (-1, proc_fd_name, TRUE, &fd, error))
-            return -1;
+            {
+              g_prefix_error (error, "Unable to open \"%s\" as directory: ",
+                              current_path->str);
+              return -1;
+            }
         }
       else
         {
           if (!glnx_openat_rdonly (-1, proc_fd_name, TRUE, &fd, error))
-            return -1;
+            {
+              g_prefix_error (error, "Unable to open \"%s\": ",
+                              current_path->str);
+              return -1;
+            }
         }
 
       if (real_path_out != NULL)