Skip to content
Snippets Groups Projects
Commit 4265b3ec authored by Clément Pit-Claudel's avatar Clément Pit-Claudel
Browse files

server: Improve duplicate registration message

parent ff3fdf04
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ object WebServer:
/** Registers the given app */
private def register(app: ServerAppFactory): Unit =
require(!appDirectory.contains(app.appInfo.id))
require(!appDirectory.contains(app.appInfo.id), f"Already registered: ${app.appInfo.id}")
appDirectory.put(app.appInfo.id, app)
println(f"[${app.appInfo.id}] registered")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment