fix(mount): explain WebDAV 401 for fnOS account/password
This commit is contained in:
parent
7db51693ad
commit
e1778520ed
|
|
@ -214,9 +214,11 @@ function describeWebdavError(e: unknown, path?: string): string {
|
|||
s.includes("401") ||
|
||||
s.includes("403") ||
|
||||
s.includes("unauthorized") ||
|
||||
s.includes("forbidden")
|
||||
)
|
||||
return `认证失败,请检查用户名和密码${pathHint}`;
|
||||
s.includes("forbidden") ||
|
||||
s.includes("not authorized")
|
||||
) {
|
||||
return `认证失败(服务器拒绝该账号/密码)${pathHint}。请核对飞牛「WebDAV」专用账号密码(常与网页登录不同),并确认地址是否带 /dav 前缀`;
|
||||
}
|
||||
if (s.includes("enotfound") || s.includes("eai_again") || s.includes("getaddrinfo"))
|
||||
return "无法解析服务器地址";
|
||||
if (s.includes("econnrefused")) return "连接被拒绝,请检查地址和端口";
|
||||
|
|
|
|||
Loading…
Reference in New Issue