Permalink
Browse files

Only re-throw fatal error in test environment

  • Loading branch information...
1 parent e687e7a commit 0a67195edde47d942cec170a3e4b04926af6584e @sgress454 sgress454 committed Dec 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 errors/fatal.js
View
@@ -165,7 +165,7 @@ function _terminateProcess(code, opts) {
// That way, it's up to the caller whether it wants to catch the original error and
// do a deliberate process.exit and omit the error stack (which can be disorienting
// for folks new to SSJ/Node.js))
- if (process.env.NODE_ENV !== 'test') {
+ if (process.env.NODE_ENV === 'test') {
throw new Error({
type: 'terminate',
code: code,

0 comments on commit 0a67195

Please sign in to comment.