Made try/catch release-only
This makes debugging a lot easier
This commit is contained in:
parent
9d6eb5a75c
commit
6f6306c064
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,9 @@ namespace arookas {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int Main(string[] args) {
|
static int Main(string[] args) {
|
||||||
|
#if !DEBUG
|
||||||
try {
|
try {
|
||||||
|
#endif
|
||||||
Console.WriteLine(cTitle);
|
Console.WriteLine(cTitle);
|
||||||
ReadCommandLine(args);
|
ReadCommandLine(args);
|
||||||
Console.WriteLine("Opening input file...");
|
Console.WriteLine("Opening input file...");
|
||||||
|
@ -53,12 +55,14 @@ namespace arookas {
|
||||||
Console.WriteLine("Closing input file...");
|
Console.WriteLine("Closing input file...");
|
||||||
}
|
}
|
||||||
Console.WriteLine("Done.");
|
Console.WriteLine("Done.");
|
||||||
|
#if !DEBUG
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
Console.WriteLine(e.Message);
|
Console.WriteLine(e.Message);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
#endif
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ReadCommandLine(string[] args) {
|
static void ReadCommandLine(string[] args) {
|
||||||
|
|
Loading…
Reference in a new issue