printing stack trace in error msg