Add details of error and the stacktrace