mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Better error message.
This commit is contained in:
parent
ef68022bbd
commit
e9c9198327
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ class KobaltServer @Inject constructor(@Assisted val force: Boolean, @Assisted @
|
||||||
|
|
||||||
private fun createServerFile(port: Int, force: Boolean) : Boolean {
|
private fun createServerFile(port: Int, force: Boolean) : Boolean {
|
||||||
if (File(SERVER_FILE).exists() && ! force) {
|
if (File(SERVER_FILE).exists() && ! force) {
|
||||||
kobaltLog(1, "Server file $SERVER_FILE already exists, is another server running?")
|
kobaltLog(1, "Server file $SERVER_FILE already exists. Another server is probably already running.")
|
||||||
|
kobaltLog(1, "Relaunch this server with --force to run this server anyway and take over the port.")
|
||||||
return false
|
return false
|
||||||
} else {
|
} else {
|
||||||
val processName = ManagementFactory.getRuntimeMXBean().name
|
val processName = ManagementFactory.getRuntimeMXBean().name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue