Handling an error twice

Mistake

Logging an error in multiple places

Fix

Log or return an error, never do both.

References