}
// report errors
- StringBuilder sb = new StringBuilder();
- for (String error : errors)
- {
- sb.append("- " + error);
- sb.append("\n");
- }
- if (Platform.isHeadless())
- {
- Console.debug("All errors from command line argument commands:\n"
- + sb.toString());
- }
- else
- {
- // scrollable dialog box
-
- }
+ Console.debug("All errors from command line argument commands:\n"
+ + errorsToString());
+ // gui errors reported in Jalview
if (argParser.getBoolean(Arg.QUIT))
{
return whatNext.OKAY;
}
+
+ public List<String> getErrors()
+ {
+ return errors;
+ }
+
+ public String errorsToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ for (String error : errors)
+ {
+ sb.append("- " + error);
+ sb.append("\n");
+ }
+ return sb.toString();
+ }
}