Skip to content

Commit

Permalink
Fix: no error message displayed if HTTP 401 returned on validate_url …
Browse files Browse the repository at this point in the history
…request
  • Loading branch information
TheSomeMan committed Apr 15, 2024
1 parent 37b503e commit 7c1f92b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ export function validate_url (auth, url_to_validate, validate_type, auth_type, p
}
} else if (resp.status === 401) {
validity_icons_set_invalid(params)
set_error_message(params, `HTTP error 401 (Unauthorized): ${resp.message}`)
} else {
let params2 = { input_url: params['input_url'] }
if ('input_url_port' in params) {
Expand Down

0 comments on commit 7c1f92b

Please sign in to comment.