Merge pull request #571 from andre2007/fix-server-exceptions

Fix server exception handling
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2019-01-06 23:22:52 +01:00 committed by GitHub
commit 5b9780562a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

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