1
0
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:
Henry Heino
2023-07-18 06:47:25 -07:00
committed by GitHub
parent 3c2f193714
commit c70afe3478
2 changed files with 14 additions and 3 deletions

View File

@@ -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;