about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/lf-make-map/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/lf-make-map/src/main.rs')
-rw-r--r--sys/nixpkgs/pkgs/lf-make-map/src/main.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/nixpkgs/pkgs/lf-make-map/src/main.rs b/sys/nixpkgs/pkgs/lf-make-map/src/main.rs
index 8a1ca602..362b28db 100644
--- a/sys/nixpkgs/pkgs/lf-make-map/src/main.rs
+++ b/sys/nixpkgs/pkgs/lf-make-map/src/main.rs
@@ -42,15 +42,17 @@ fn main() -> anyhow::Result<()> {
                     )
                 })?;
 
-            mappings.include(path.to_str().with_context(|| {
-                format!(
-                    "\
+            mappings
+                .include(path.to_str().with_context(|| {
+                    format!(
+                        "\
 Can't derive a keymapping from path: '{}' \
 because it can't be turned to a string
 ",
-                    path.display()
-                )
-            })?);
+                        path.display()
+                    )
+                })?)
+                .with_context(|| format!("Failed to include path: '{}'", path.display()))?;
 
             trace!("Processed '{}'..", directory.path().display());
         }