Update to all catch functions.
This commit is contained in:
@@ -203,7 +203,7 @@ export let get_object = async function get_object(
|
||||
return return_data;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
// Handle the common and expected 404 "error" first
|
||||
if (error.response && error.response.status === 404) {
|
||||
if (log_lvl) {
|
||||
@@ -392,7 +392,7 @@ export let get_object = async function get_object(
|
||||
return response;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
// Handle the common and expected 404 "error" first
|
||||
if (error.response && error.response.status === 404) {
|
||||
if (log_lvl) {
|
||||
|
||||
Reference in New Issue
Block a user