API will start without DB.

This commit is contained in:
Roland 2023-01-31 17:11:31 -07:00
parent 76291d2258
commit 163b14c294
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
10 changed files with 111 additions and 48 deletions

View file

@ -48,18 +48,7 @@ async function apiCall(url, method, body, ms = 20000) {
return response;
} catch (e) {
// Timeout, or some other exception.
if (e.message === 'promise timeout') {
toast({
type: 'error',
title: 'Server failed to respond!',
description: 'Timeout while waiting for server response. See server logs.',
time: 5000,
});
} else {
toast({
type: 'error', title: 'Error!', description: 'See client logs', time: 5000,
});
}
console.error(e);
throw e;
}
}