문제

console.log 'before'
assert 1 is 2
console.log 'after'

When I run meteor, all that is printed is 'before', and nothing about an assertion failing. The assert package has been added with meteor add assert.

도움이 되었습니까?

해결책

Try this (looks like you're using coffeescript):

console.log 'before'

try
  assert 1 is 2
catch error
  console.log error.message

console.log 'after'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top