Merge pull request #569 from andre2007/fix-exceptions

Fix client 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:20:07 +01:00 committed by GitHub
commit ca293629a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -35,6 +35,21 @@ import dcd.common.dcd_version;
import dcd.common.socket;
int main(string[] args)
{
try
{
return runClient(args);
}
catch (Exception e)
{
stderr.writeln(e);
return 1;
}
}
private:
int runClient(string[] args)
{
sharedLog.fatalHandler = () {};
@ -243,8 +258,6 @@ int main(string[] args)
return 0;
}
private:
void printHelp(string programName)
{
writefln(