branch: externals/dired-duplicates
commit 0e9619ce716842b4e4f3270a2dd92e58c5b516e8
Author: Harald Judt <[email protected]>
Commit: Harald Judt <[email protected]>

    Print file in error message when checksum program fails
    
    This makes it easier to find out which file caused an error because the 
message
    before might not get printed reliably in cases of errors.
    
    Signed-off-by: Harald Judt <[email protected]>
---
 dired-duplicates.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dired-duplicates.el b/dired-duplicates.el
index 8c069b4bbc..bb3cc9c7e2 100644
--- a/dired-duplicates.el
+++ b/dired-duplicates.el
@@ -163,7 +163,7 @@ temporary buffer for the hash calculation."
       (with-temp-buffer
         (message "External checksumming of %s" file)
         (unless (zerop (process-file exec nil t nil file))
-          (error "Failed to start checksum program %s" exec))
+          (error "Failed to start checksum program %s for file %s" exec file))
         (goto-char (point-min))
         (if (looking-at "\\`[[:alnum:]]+")
             (match-string 0)

Reply via email to