public boolean hasErrors() {
		return !errors.isEmpty();
	}
returns true if the task did not successfully complete due to an error

@return true if the task did not successfully complete due to an error
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/task/VtTask.java