add console.error(err.stack) by default

use cnpm
Merge pull request #3 from dead-horse/master

add console.error(err.stack) by default