diff options
Diffstat (limited to 'Prebuild/src/Prebuild.cs')
-rw-r--r-- | Prebuild/src/Prebuild.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Prebuild/src/Prebuild.cs b/Prebuild/src/Prebuild.cs index 2d12b53..081c89c 100644 --- a/Prebuild/src/Prebuild.cs +++ b/Prebuild/src/Prebuild.cs | |||
@@ -26,9 +26,9 @@ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O | |||
26 | #region CVS Information | 26 | #region CVS Information |
27 | /* | 27 | /* |
28 | * $Source$ | 28 | * $Source$ |
29 | * $Author: jendave $ | 29 | * $Author: kunnis $ |
30 | * $Date: 2006-09-26 23:43:35 +0200 (ti, 26 sep 2006) $ | 30 | * $Date: 2009-04-15 02:33:14 +0100 (Wed, 15 Apr 2009) $ |
31 | * $Revision: 168 $ | 31 | * $Revision: 308 $ |
32 | */ | 32 | */ |
33 | #endregion | 33 | #endregion |
34 | 34 | ||
@@ -86,17 +86,17 @@ namespace Prebuild | |||
86 | { | 86 | { |
87 | kernel.Process(); | 87 | kernel.Process(); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | catch(Exception ex) | 90 | #if !DEBUG |
91 | { | 91 | catch (Exception ex) |
92 | Console.WriteLine("Unhandled error: {0}", ex.Message); | 92 | { |
93 | //#if DEBUG | 93 | Console.WriteLine("Unhandled error: {0}", ex.Message); |
94 | Console.WriteLine("{0}", ex.StackTrace); | 94 | Console.WriteLine("{0}", ex.StackTrace); |
95 | //#endif | 95 | } |
96 | } | 96 | #endif |
97 | finally | 97 | finally |
98 | { | 98 | { |
99 | if(kernel.PauseAfterFinish) | 99 | if(kernel != null && kernel.PauseAfterFinish) |
100 | { | 100 | { |
101 | Console.WriteLine("\nPress enter to continue..."); | 101 | Console.WriteLine("\nPress enter to continue..."); |
102 | Console.ReadLine(); | 102 | Console.ReadLine(); |