Add logs on error.