mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Make Node warning a multi-line string
This commit is contained in:
parent
410390a9ae
commit
6182e7c98a
@ -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');
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user