[gvfs] sftp: Reword connection closed error message



commit e0e8e9f440a30a93a88698b19e1909b54bcee3c5
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Sat May 31 10:40:10 2014 +0100

    sftp: Reword connection closed error message
    
    Emphasize the fact that the SSH process dying is likely due to the
    network connection closing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=615146

 daemon/gvfsbackendsftp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index f2424cb..a81599e 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -1171,8 +1171,8 @@ check_input_stream_read_result (GVfsBackendSftp *backend, gssize res, GError *er
         {
           g_clear_error (&error);
           g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                       _("Internal error: %s"),
-                       res == 0 ? "The underlying SSH process died" : "Unkown Error");
+                       res == 0 ? _("The connection is closed (the underlying SSH process died)")
+                                : _("Internal error: Unknown Error"));
         }
 
       fail_jobs_and_unmount (backend, error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]