File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
src/main/java/com/conveyal/r5/analyst Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,15 @@ public TaskError(Throwable throwable) {
30
30
}
31
31
32
32
/**
33
- * This constructor is used for errors that occur while applying a scenario to a network.
34
- * messages will generally be either the errors or warnings associated with the modification, which is why there is
35
- * a separate argument; otherwise we wouldn't know whether errors or warnings were desired.
33
+ * This constructor is used for errors, warnings, or informational messages that occur
34
+ * while applying a scenario to a network.
36
35
*/
37
36
public TaskError (Modification modification , Collection <String > messages ) {
38
37
this .modificationId = modification .comment ;
39
38
this .title = "while applying the modification entitled '" + modification .comment + "'." ;
40
39
checkArgument (messages .size () <= Modification .MAX_MESSAGES + 1 );
41
40
this .messages .addAll (messages );
42
- }
43
-
44
- public TaskError (String modificationId , String title , String detail ) {
45
- this .modificationId = modificationId ;
46
- this .title = title ;
47
- this .messages .add (detail );
41
+ this .messages .sort (String ::compareTo );
48
42
}
49
43
50
44
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public abstract class Modification implements Serializable {
39
39
* The maximum number of error messages in each category (info/warning/error) to store in each modification.
40
40
* This prevents bandwidth/latency/memory problems from sending enormous lists of errors back to the client.
41
41
*/
42
- public static final int MAX_MESSAGES = 5 ;
42
+ public static final int MAX_MESSAGES = 40 ;
43
43
44
44
/** Free-text comment describing this modification instance and what it's intended to do or represent. */
45
45
public String comment ;
You can’t perform that action at this time.
0 commit comments