[bug fix] print err.stack instead of err name