mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-22 12:01:38 -04:00
cli: don't crash if something goes wrong, #72
This commit is contained in:
parent
1767f93dcc
commit
fd48bd991b
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Minosoft
|
||||
* Copyright (C) 2020 Moritz Zwerger
|
||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
@ -98,7 +98,7 @@ public class CLI {
|
||||
} catch (UserInterruptException e) {
|
||||
ShutdownManager.INSTANCE.shutdown(e.getMessage(), ShutdownReasons.REQUESTED_BY_USER);
|
||||
return;
|
||||
} catch (Exception other) {
|
||||
} catch (Throwable other) {
|
||||
other.printStackTrace();
|
||||
Log.log(LogMessageType.GENERAL, LogLevels.INFO, () -> "Failed to read line. Stopping CLI!");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user