mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
Distinguish between errors with and without details
This commit is contained in:
@@ -71,7 +71,17 @@ class BackendErrorNotification extends React.Component<Props> {
|
||||
renderAdditionalMessages = () => {
|
||||
const { error, t } = this.props;
|
||||
if (error.additionalMessages) {
|
||||
return error.additionalMessages.map(a => a.key ? t(`errors.${a.key}.description`) : a.message).map(m => <p>{m}</p>);
|
||||
return (
|
||||
<>
|
||||
<hr />
|
||||
{error.additionalMessages
|
||||
.map(a => (a.key ? t(`errors.${a.key}.description`) : a.message))
|
||||
.map(m => (
|
||||
<p>{m}</p>
|
||||
))}
|
||||
<hr />
|
||||
</>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user