adds .stack to error properties