Skip to content
Permalink
Browse files

Log errors rather than throw

  • Loading branch information
kgryte committed Nov 24, 2019
1 parent 036c226 commit 854658b5dff2c13bc1e80ccae6a972358b0930bc
@@ -34,7 +34,7 @@
*
* function done( error, fastify ) {
* if ( error ) {
* throw error;
* return console.error( error.message );
* }
* console.log( 'Success!' );
* fastify.server.close();
@@ -59,7 +59,7 @@ var routes = require( './routes' );
*
* function done( error, fastify ) {
* if ( error ) {
* throw error;
* return console.error( error.message );
* }
* console.log( 'Success!' );
* fastify.server.close();

0 comments on commit 854658b

Please sign in to comment.
You can’t perform that action at this time.