Log more details on error