Apperror: add missing error member, and pass along the stack property if it exists

For better error reporting/debugging fwiw.