From c48a339ca58dd6e2aaa05d707d89e1d2030c87a4 Mon Sep 17 00:00:00 2001 From: ThatOneTqnk Date: Fri, 1 Nov 2019 13:25:28 -0500 Subject: [PATCH] Show all errors if map not specified. Signed-off-by: ThatOneTqnk --- .../java/tc/oc/pgm/commands/MapDevelopmentCommands.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/tc/oc/pgm/commands/MapDevelopmentCommands.java b/src/main/java/tc/oc/pgm/commands/MapDevelopmentCommands.java index c4ee90f3b5..893e1dda14 100644 --- a/src/main/java/tc/oc/pgm/commands/MapDevelopmentCommands.java +++ b/src/main/java/tc/oc/pgm/commands/MapDevelopmentCommands.java @@ -63,11 +63,14 @@ public static void errorsCommand( throws CommandException { Multimap errors = getErrors(); Multimap filtered = ArrayListMultimap.create(); - filtered.putAll(map, errors.get(map)); - errors = filtered; + + if (map != null) { + filtered.putAll(map, errors.get(map)); + errors = filtered; + } new PrettyPaginatedResult>( - map == null ? "Map Errors" : map.getName() + " Errors") { + map == null ? "Errors" : map.getName() + " Errors") { @Override public String format(Map.Entry entry, int index) { return entry.getValue().getLegacyFormattedMessage();