Include the error code when smb-ls fails to authenticate.

This commit is contained in:
david 2012-06-04 03:46:14 +00:00
parent 0372cf9e7a
commit 877e574f25

View file

@ -62,7 +62,7 @@ local function fail(err) return ("\n ERROR: %s"):format(err or "") end
action = function(host)
local status, smbstate = smb.start_ex(host, true, true, arg_share, nil, nil, nil)
if ( not(status) ) then
return fail("Failed to authenticate to server")
return fail("Failed to authenticate to server (" .. smbstate .. ")")
end
-- remove leading slash