Fix server exceptions

This commit is contained in:
andre2007 2019-01-06 18:34:29 +01:00
parent a163e33beb
commit fbd495b11f
1 changed files with 13 additions and 0 deletions

View File

@ -44,6 +44,19 @@ import dcd.server.autocomplete;
import dcd.server.server; import dcd.server.server;
int main(string[] args) int main(string[] args)
{
try
{
return runServer(args);
}
catch (Exception e)
{
stderr.writeln(e);
return 1;
}
}
int runServer(string[] args)
{ {
ushort port; ushort port;
bool help; bool help;