dont throw a Bug when HTTP server dies
This commit is contained in:
parent
44126aa477
commit
bfcee3705d
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ import de.tudbut.tryumph.config.RequestCatcherConfig;
|
|||
import de.tudbut.tryumph.config.TryConfig;
|
||||
import de.tudbut.tryumph.err.ProjectException;
|
||||
import de.tudbut.tryumph.server.http.Server;
|
||||
import de.tudbut.tryumph.util.Bug;
|
||||
import tudbut.global.DebugStateManager;
|
||||
|
||||
public class Launch {
|
||||
|
@ -29,7 +28,7 @@ public class Launch {
|
|||
IRequestCatcher requestCatcher = catcher.load().ok().await();
|
||||
server.listen(requestCatcher);
|
||||
} catch(Throwable e) {
|
||||
throw new Bug("HTTP server died, but all errors from HTTP should usually be catched", e);
|
||||
throw new Error("HTTP Server died.", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue