From dab020e0d5325afaba59c0389c7f1512099da6b4 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Tue, 8 Oct 2024 09:34:03 +0200 Subject: [PATCH] fix of handling error --- frontend/src/scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index f392039..c57e975 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -100,7 +100,7 @@ class Main extends Component { }).catch((error) => { this.setState({ progress: false, - text: "Chyba: " + error.status +", " + error.statusText, + text: "Chyba: " + error.response.status +", " + error.response.data, status: "failed", }) });