mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-13 07:04:14 +08:00
Throw an IllegalStateException with an informative message
This commit is contained in:
@@ -551,7 +551,7 @@ public class Server implements AutoCloseable, Runnable {
|
||||
case Message.KEEP_ALIVE:
|
||||
return 100;
|
||||
default:
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException("Unexpected message type " + m.getType() + ": " + m);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user