put cause of error at the start of stack trace