Wrap error for more informative messages.