Skip to content
This repository
Browse code

modified: README.md

  • Loading branch information...
commit 68f1de91efc10ad7d2c6f812d0adb16b4c178482 1 parent c3fb13a
Shimon Doodkin authored October 14, 2010

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  README.md
14  README.md
Source Rendered
@@ -44,13 +44,13 @@ for example to `/var/www`. Copying of `autoexit.js` is optional and it can be in
44 44
 
45 45
 Also after serving one sucsessful request (application is fully loaded) I add an on error error handler:
46 46
 
47  
- if(!app_loaded)
48  
-   {
49  
-    process.on('uncaughtException', function (err) {
50  
-      console.log('Caught exception: ' + err.stack);
51  
-    });
52  
-    app_loaded=true;
53  
-   }
  47
+    if(!app_loaded)
  48
+    {
  49
+     process.on('uncaughtException', function (err) {
  50
+       console.log('Caught exception: ' + err.stack);
  51
+     });
  52
+     app_loaded=true;
  53
+    }
54 54
 
55 55
 As i like it, I want it to crash on load errors and exit the application but not on application errors.
56 56
 

0 notes on commit 68f1de9

Please sign in to comment.
Something went wrong with that request. Please try again.