Add trace to the result of fail and error cases
Add trace to the result of fail and error cases