Skip to content

Commit

Permalink
when no details, send empty string to avoid {4} in UI #2073
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed May 6, 2019
1 parent 4c76181 commit af3b176
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,13 @@ public void move(){
String version = settingsWrapper.getGuidesVersion();
// Suggest using the API to force the move.
arguments.add(BundleUtil.getStringFromBundle("dashboard.card.datamove.dataset.command.error.unforced.suggestForce", Arrays.asList(guidesBaseUrl, version)));
} else {
String emptyStringNoDetails = "";
arguments.add(emptyStringNoDetails);
}
FacesContext.getCurrentInstance().addMessage(null,
new FacesMessage(FacesMessage.SEVERITY_ERROR,
BundleUtil.getStringFromBundle("dashboard.card.datamove.message.failure.summary", arguments),
BundleUtil.getStringFromBundle("dashboard.card.datamove.message.failure.summary"),
BundleUtil.getStringFromBundle("dashboard.card.datamove.message.failure.details", arguments)));
}
}
Expand Down

0 comments on commit af3b176

Please sign in to comment.