fix(main.js): color of 404 status in console logs (#46)
diff --git a/src/main.js b/src/main.js
index e651f12..20449ce 100644
--- a/src/main.js
+++ b/src/main.js
@@ -31,7 +31,7 @@
// Attach this before anything else to provide status output
this.app.use((req, res, next) => {
res.on('finish', function () {
- const color = this.statusCode === '404' ? chalk.red : chalk.green;
+ const color = this.statusCode === 404 ? chalk.red : chalk.green;
let msg = `${color(this.statusCode)} ${this.req.originalUrl}`;
const encoding = this.getHeader('content-encoding');
if (encoding) {