From 0249e2259899e3f2275930493fb87f88a53aaa6e Mon Sep 17 00:00:00 2001
From: Jerome Charaoui <jerome@riseup.net>
Date: Sun, 14 Jan 2018 15:26:27 -0500
Subject: [PATCH] [borg] Add return code to error message

---
 handlers/borg.helper.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/borg.helper.in b/handlers/borg.helper.in
index aac3973f..db61a670 100644
--- a/handlers/borg.helper.in
+++ b/handlers/borg.helper.in
@@ -192,7 +192,7 @@ do_borg_ssh_con() {
             0 )   msgBox "$borg_title: error" "Directories are writable: Probably just a typo the first time." ;;
             1 )   msgBox "$borg_title: error" "Connected successfully to $borg_user@$borg_host, but unable to write. Check ownership and modes of ~$borg_user on $borg_host." ;;
             255 ) msgBox "$borg_title: error" "Failed to connect to $borg_user@$borg_host. Check hostname, username, and password. Also, make sure sshd is running on the destination host." ;;
-            * )   msgBox "$borg_title: error" "Unexpected error." ;;
+            * )   msgBox "$borg_title: error" "Unexpected error (return code ${result})." ;;
          esac
          return
       else
-- 
GitLab