If your Node.js version is < than 6.0.0Using console.log(err) prints only the error message.For newer versionIt prints the error message and the full stack.#Node.js