X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Faccounts%2Fsrc%2Faccount%2Faccount.jsx;h=41a3046ab57c5bedb11aabd224fe40764e33127a;hp=b7dbf358cf173f34933719e73254cb74a424364b;hb=ca1da3e8781d04f526bf8462887dabc1b84b95c2;hpb=61b1762cb6a657c5a8eb09d52fbf9a35a2a73aff diff --git a/skyquake/plugins/accounts/src/account/account.jsx b/skyquake/plugins/accounts/src/account/account.jsx index b7dbf358c..41a3046ab 100644 --- a/skyquake/plugins/accounts/src/account/account.jsx +++ b/skyquake/plugins/accounts/src/account/account.jsx @@ -23,6 +23,7 @@ import SkyquakeComponent from 'widgets/skyquake_container/skyquakeComponent.jsx' import Crouton from 'react-crouton'; import TextInput from 'widgets/form_controls/textInput.jsx'; import {AccountConnectivityStatus} from '../account_sidebar/accountSidebar.jsx'; +import Utils from 'utils/utils.js'; import 'style/common.scss'; import './account.scss'; class Account extends React.Component { @@ -106,8 +107,8 @@ class Account extends React.Component { self.props.router.push({pathname:'accounts'}); self.props.flux.actions.global.hideScreenLoader.defer(); }, - function() { - self.props.flux.actions.global.showNotification("There was an error creating your account. Please contact your system administrator."); + function(error) { + self.props.flux.actions.global.showNotification(Utils.parseError(error)); self.props.flux.actions.global.hideScreenLoader.defer(); }); }