aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js')
-rw-r--r--openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js b/openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js
index e7f37e3768..13dfb1f0ab 100644
--- a/openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js
+++ b/openecomp-ui/src/nfvo-utils/ErrorResponseHandler.js
@@ -1,5 +1,5 @@
/*!
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2016-2018 European Support Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -62,13 +62,13 @@ var errorResponseHandler = (error) => {
else {
errorData = {
title: error.statusText,
- msg: error.responseText,
+ msg: error.responseText ? error.responseText : i18n('GENERIC_ERROR'),
};
}
store.dispatch({
type: modalActionTypes.GLOBAL_MODAL_ERROR,
data: {
- ...errorData
+ ...errorData
}
});
};