You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
All: Resolves #8466: WebDAV: Show a more descriptive error message when the password is empty (#8477)
This commit is contained in:
@@ -44,9 +44,9 @@ export interface PaginatedList {
|
||||
function requestCanBeRepeated(error: any) {
|
||||
const errorCode = typeof error === 'object' && error.code ? error.code : null;
|
||||
|
||||
// Unauthorized error - means username or password is incorrect or other
|
||||
// Unauthorized/forbidden error - means username or password is incorrect or other
|
||||
// permission issue, which won't be fixed by repeating the request.
|
||||
if (errorCode === 403) return false;
|
||||
if (errorCode === 403 || errorCode === 401) return false;
|
||||
|
||||
// The target is explicitely rejecting the item so repeating wouldn't make a difference.
|
||||
if (errorCode === 'rejectedByTarget' || errorCode === 'isReadOnly') return false;
|
||||
|
||||
Reference in New Issue
Block a user