mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
Heed review comments
This commit is contained in:
@@ -37,21 +37,21 @@ public abstract class ExceptionWithContext extends RuntimeException {
|
||||
private final List<ContextEntry> context;
|
||||
private final List<AdditionalMessage> additionalMessages;
|
||||
|
||||
public ExceptionWithContext(List<ContextEntry> context, String message) {
|
||||
protected ExceptionWithContext(List<ContextEntry> context, String message) {
|
||||
this(context, null, message);
|
||||
}
|
||||
|
||||
public ExceptionWithContext(List<ContextEntry> context, List<AdditionalMessage> additionalMessages, String message) {
|
||||
protected ExceptionWithContext(List<ContextEntry> context, List<AdditionalMessage> additionalMessages, String message) {
|
||||
super(message);
|
||||
this.context = context;
|
||||
this.additionalMessages = additionalMessages;
|
||||
}
|
||||
|
||||
public ExceptionWithContext(List<ContextEntry> context, String message, Exception cause) {
|
||||
protected ExceptionWithContext(List<ContextEntry> context, String message, Exception cause) {
|
||||
this(context, null, message, cause);
|
||||
}
|
||||
|
||||
public ExceptionWithContext(List<ContextEntry> context, List<AdditionalMessage> additionalMessages, String message, Exception cause) {
|
||||
protected ExceptionWithContext(List<ContextEntry> context, List<AdditionalMessage> additionalMessages, String message, Exception cause) {
|
||||
super(message, cause);
|
||||
this.context = context;
|
||||
this.additionalMessages = additionalMessages;
|
||||
|
||||
@@ -75,9 +75,11 @@ class BackendErrorNotification extends React.Component<Props> {
|
||||
<>
|
||||
<hr />
|
||||
{error.additionalMessages
|
||||
.map(a => (a.key ? t(`errors.${a.key}.description`) : a.message))
|
||||
.map(m => (
|
||||
<p>{m}</p>
|
||||
.map(additionalMessage =>
|
||||
additionalMessage.key ? t(`errors.${additionalMessage.key}.description`) : additionalMessage.message
|
||||
)
|
||||
.map(message => (
|
||||
<p>{message}</p>
|
||||
))}
|
||||
<hr />
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user