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:
commit
5b9780562a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue