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