|
|
@@ -93,7 +93,9 @@ class ApiCaller {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- request.onerror = () => {
|
|
|
+ request.onerror = (result) => {
|
|
|
+ NotificationActions.notify("Request failed, there might be a problem with the connection to the server.", "error")
|
|
|
+
|
|
|
console.log('Error Response: ', result.data);
|
|
|
reject({ status: 500, data: 'Connection error' });
|
|
|
}
|