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) {
|
||||
#if !DEBUG
|
||||
try {
|
||||
#endif
|
||||
Console.WriteLine(cTitle);
|
||||
ReadCommandLine(args);
|
||||
Console.WriteLine("Opening input file...");
|
||||
|
@ -53,12 +55,14 @@ namespace arookas {
|
|||
Console.WriteLine("Closing input file...");
|
||||
}
|
||||
Console.WriteLine("Done.");
|
||||
#if !DEBUG
|
||||
}
|
||||
catch (Exception e) {
|
||||
Console.WriteLine(e.Message);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ReadCommandLine(string[] args) {
|
||||
|
|
Loading…
Reference in a new issue