use template literals for console.log

This commit is contained in:
nkzawa 2016-12-02 15:29:02 +09:00
parent f2653d0e2f
commit 6ca52f3ee2
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ clean(dir)
.then(async () => { .then(async () => {
const srv = new Server({ dir, dev: true, hotReload: true }) const srv = new Server({ dir, dev: true, hotReload: true })
await srv.start(argv.port) await srv.start(argv.port)
console.log('> Ready on http://localhost:%d', argv.port) console.log(`> Ready on http://localhost:${argv.port}`)
// Check if pages dir exists and warn if not // Check if pages dir exists and warn if not
if (!(await exists(join(dir, 'pages')))) { if (!(await exists(join(dir, 'pages')))) {

View file

@ -20,7 +20,7 @@ const dir = resolve(argv._[0] || '.')
const srv = new Server({ dir }) const srv = new Server({ dir })
srv.start(argv.port) srv.start(argv.port)
.then(() => { .then(() => {
console.log('> Ready on http://localhost:%d', argv.port) console.log(`> Ready on http://localhost:${argv.port}`)
}) })
.catch((err) => { .catch((err) => {
console.error(err) console.error(err)