[Refactoring] [Attempt to fix crash]
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import {showWindow, shutdownApplication} from './common_actions';
|
||||
import {
|
||||
showWindow,
|
||||
shutdownApplication
|
||||
} from './common_actions';
|
||||
|
||||
let ErrorActions = [];
|
||||
|
||||
@@ -27,7 +30,7 @@ export const dismissError = () => {
|
||||
export const notifyError = (msg, critical, callback) => {
|
||||
return dispatch => {
|
||||
ErrorActions = [callback, ...ErrorActions];
|
||||
msg = msg.toString();
|
||||
msg = msg ? msg.toString() : 'Unknown Error';
|
||||
dispatch(setErrorInfo(msg, critical));
|
||||
dispatch(showWindow());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user