A method for reporting error messages in CommandLineListener#execute(CommandLineArgument[]) implementations. It ensures that messages are written to the log file and/or written to stderr as appropriate. @param str the error message
(String str)
| 700 | * @param str the error message |
| 701 | */ |
| 702 | public static void error(String str) { |
| 703 | switch (ZAP.getProcessType()) { |
| 704 | case cmdline: |
| 705 | System.err.println(str); |
| 706 | break; |
| 707 | default: // Ignore |
| 708 | } |
| 709 | // Always write to the log |
| 710 | LOGGER.error(str); |
| 711 | } |
| 712 | |
| 713 | /** |
| 714 | * A method for reporting error messages in {@link |
no test coverage detected