fix of handling error
This commit is contained in:
parent
07c77fef48
commit
dab020e0d5
@ -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",
|
||||
})
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user