forked from jappel/leistungsbilanz-ts
Translate remaining frontend
This commit is contained in:
parent
7257deacdc
commit
e4fd7e0df6
11 changed files with 79 additions and 53 deletions
|
|
@ -37,7 +37,7 @@ async function request<T>(url: string, init?: RequestInit): Promise<T> {
|
|||
|
||||
if (!response.ok) {
|
||||
const details = await response.text();
|
||||
throw new Error(details || `Request failed with ${response.status}`);
|
||||
throw new Error(details || `Anfrage fehlgeschlagen (Status ${response.status})`);
|
||||
}
|
||||
|
||||
if (response.status === 204) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue