I’d like my Meteor app to check on startup if there’s an extant file called
/usr/local/bin/myprog and die immediately (really die - go right back to the command prompt) if it doesn’t find that dependency and reveal nothing about this error to clients. I can make Meteor die, but if I HTTP GET to the standard port (for example http://localhost:3000), I get a stack trace and anything logged to standard error. Can I suppress this? Like, kill my Meteor server and the proxy thing too?
throwing anything and
process.exit(1) both seem to leave the proxy running.