Don't print traceback when no detailed diagnostic

We should only print the message.