GNOME Bugzilla – Bug 787917
smb: Very vague "Invalid argument" error given when mounting host that isn't available
Last modified: 2018-09-21 18:12:17 UTC
$ gio mount smb://nope/test gio: smb://nope/test/: Failed to mount Windows share: Invalid argument That's not a very user-friendly message. Most users likely wouldn't even guess that the hostname was the problem there. Might I suggest something like "Server %s not found" or similar?
Thanks for your bug report. Yes, the error message is not optimal, but it is not as straightforward as it looks. EINVAL is returned from samba and it can probably have a lot of meanings. But it is true, that in most cases it probably means that server is not found. Will you please prepare patch?
That is something I could prepare. Not sure on timeline, but I'll add it to my todo list.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/315.