From 092d11cbb80f1d2156ed6db5c1603a55418fd814 Mon Sep 17 00:00:00 2001 From: barhouum7 Date: Mon, 5 Oct 2020 01:04:09 +0100 Subject: [PATCH] Nice fix --- server.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 764c187..897ca1b 100644 --- a/server.js +++ b/server.js @@ -60,8 +60,7 @@ app.use('/authors', authorRouter) /* Telling our Server 1-[ to pass our very Roo app.listen(process.env.PORT || 3000, (error) => { - if (error) - console.log('\nERROR! Something Went Wrong.\n') - else + error ? + console.log('\nERROR! Something Went Wrong.\n') : console.log('\nServer is listening on PORT: 3000\n') }) /* Telling to our App that we want to Listening on Certain PORT */ \ No newline at end of file