Fondation
This commit is contained in:
parent
1af01840c3
commit
2def4a8e9b
@ -786,7 +786,7 @@ export default function CarnetPage() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const errorText = await response.text().catch(() => '');
|
const errorText = await response.text().catch(() => '');
|
||||||
let errorData = {};
|
let errorData: { message?: string; error?: string } = {};
|
||||||
try {
|
try {
|
||||||
errorData = errorText ? JSON.parse(errorText) : {};
|
errorData = errorText ? JSON.parse(errorText) : {};
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user