mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 09:43:37 +02:00
app.d now uses gprintln
This commit is contained in:
parent
39bd426714
commit
123f1ea8b8
@ -4,6 +4,7 @@ import dnetd.dserver : DServer;
|
|||||||
import dnetd.dconfig : DConfig;
|
import dnetd.dconfig : DConfig;
|
||||||
import std.json;
|
import std.json;
|
||||||
import std.exception;
|
import std.exception;
|
||||||
|
import gogga;
|
||||||
|
|
||||||
void main(string[] args)
|
void main(string[] args)
|
||||||
{
|
{
|
||||||
@ -25,7 +26,7 @@ void main(string[] args)
|
|||||||
/* Illegal amount of guns in one household (no such thing) */
|
/* Illegal amount of guns in one household (no such thing) */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
writeln("Invalid number of arguments");
|
gprintln("Invalid number of arguments", DebugType.ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ void main(string[] args)
|
|||||||
}
|
}
|
||||||
catch(ErrnoException e)
|
catch(ErrnoException e)
|
||||||
{
|
{
|
||||||
writeln("Failure to use configuration file'"~configFilename~"' with error:\n\n"~e.toString());
|
gprintln("Failure to use configuration file'"~configFilename~"' with error:\n\n"~e.toString(), DebugType.ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ void main(string[] args)
|
|||||||
}
|
}
|
||||||
catch(JSONException e)
|
catch(JSONException e)
|
||||||
{
|
{
|
||||||
writeln("Failure to parse configuration file'"~configFilename~"' with error:\n\n"~e.toString());
|
gprintln("Failure to parse configuration file'"~configFilename~"' with error:\n\n"~e.toString(), DebugType.ERROR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ void main(string[] args)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
writeln("Failure to read a valid dnetd configuration file'"~configFilename~"'");
|
gprintln("Failure to read a valid dnetd configuration file'"~configFilename~"'", DebugType.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user