From 6182e7c98aeb9602f96066a071f908d4d00862b2 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Mon, 26 Jun 2017 13:24:54 +0200 Subject: [PATCH] Make Node warning a multi-line string --- build/app.js | 2 +- lib/app.coffee | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build/app.js b/build/app.js index a09f3385..cd1f389a 100644 --- a/build/app.js +++ b/build/app.js @@ -39,7 +39,7 @@ Raven.setContext({ validNodeVersions = require('../package.json').engines.node; if (!require('semver').satisfies(process.version, validNodeVersions)) { - console.warn("Warning: this version of Node does not match the requirements of this package. This package expects " + validNodeVersions + ", but you're using " + process.version + ". This may cause unexpected behaviour."); + console.warn("Warning: this version of Node does not match the requirements of this package.\nThis package expects " + validNodeVersions + ", but you're using " + process.version + ".\nThis may cause unexpected behaviour."); } globalTunnel = require('global-tunnel-ng'); diff --git a/lib/app.coffee b/lib/app.coffee index 751b455d..37088315 100644 --- a/lib/app.coffee +++ b/lib/app.coffee @@ -29,9 +29,11 @@ Raven.setContext validNodeVersions = require('../package.json').engines.node if not require('semver').satisfies(process.version, validNodeVersions) - console.warn("Warning: this version of Node does not match the requirements of this package. + console.warn """ + Warning: this version of Node does not match the requirements of this package. This package expects #{validNodeVersions}, but you're using #{process.version}. - This may cause unexpected behaviour.") + This may cause unexpected behaviour. + """ # Doing this before requiring any other modules,