This prints less information than before. How about:

console.error(ex, ex.stack);