From bc2be26ff74a45ac427a85a1449fb8ca675de9d2 Mon Sep 17 00:00:00 2001 From: Aman Sharma Date: Tue, 1 Aug 2023 14:51:06 +0200 Subject: [PATCH] style: improve error message --- .../src/main/java/io/github/algomaster99/Terminator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchdog-agent/src/main/java/io/github/algomaster99/Terminator.java b/watchdog-agent/src/main/java/io/github/algomaster99/Terminator.java index 8665258f..89843aff 100644 --- a/watchdog-agent/src/main/java/io/github/algomaster99/Terminator.java +++ b/watchdog-agent/src/main/java/io/github/algomaster99/Terminator.java @@ -48,13 +48,13 @@ private static byte[] isLoadedClassWhitelisted(String className, byte[] classfil if (hash.equals(fingerprint.hash())) { return classfileBuffer; } else { - System.err.println("Class " + className + " has been modified"); + System.err.println("[MODIFIED]: " + className); System.exit(1); return null; } } } - System.err.println("Class " + className + " is not whitelisted"); + System.err.println("[NOT WHITELISTED]: " + className); System.exit(1); return null; }