fix of handling error
This commit is contained in:
parent
07c77fef48
commit
dab020e0d5
@ -100,7 +100,7 @@ class Main extends Component {
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
progress: false,
|
progress: false,
|
||||||
text: "Chyba: " + error.status +", " + error.statusText,
|
text: "Chyba: " + error.response.status +", " + error.response.data,
|
||||||
status: "failed",
|
status: "failed",
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user