private boolean isErrorMessage() {
		if (decompileMessage == null || decompileMessage.length() == 0) {
			return false;
		}

		// do not count warning messages as error messages
		if (decompileMessage.toLowerCase().indexOf("warning") != -1) {
			return false;
		}

		return true;
	}
Get the last message produced by the decompiler process.
If the message is non-null, it is probably an error
message, but not always.  It is better to use the
getErrorMessage method off of DecompileResults.
@return the message string or null
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompInterface.java