diff --git a/smb/kio_smb_browse.cpp b/smb/kio_smb_browse.cpp --- a/smb/kio_smb_browse.cpp +++ b/smb/kio_smb_browse.cpp @@ -320,6 +320,11 @@ #endif case ECONNABORTED: return SMBError{ ERR_CONNECTION_BROKEN, url.host() }; + case EHOSTUNREACH: + return SMBError{ ERR_CANNOT_CONNECT, + i18nc("@info:status smb failed to reach the server (e.g. server offline or network failure). %1 is an ip address or hostname", + "%1: Host unreachable", + url.host()) }; case 0: // success return SMBError{ ERR_INTERNAL, i18n("libsmbclient reported an error, but did not specify " "what the problem is. This might indicate a severe problem "