fixed typo, added check for error info in debug display, and simplified backtrace