From 51a7836982ee2b35f0e5ed2d33a4308792b7e823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan-Gabriel=20Muscalu?= Date: Fri, 13 Jan 2017 16:10:08 +0200 Subject: [PATCH] Fix: Readme.md Missing curly braces in error handling in one example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index edd4ce9..b926210 100644 --- a/README.md +++ b/README.md @@ -57,9 +57,10 @@ var config = {}; var server = new hapi.Server(config); server.register([Vision, Inert, Lout], (err) => { - if (err) + if (err) { console.error('Failed loading plugins'); process.exit(1); + } server.start(() => {