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