Skip to content

Commit

Permalink
style: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 1, 2023
1 parent 35bf539 commit bc2be26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bc2be26

Please sign in to comment.