Add missing err check when updating a golden file
Add missing err check when updating a golden file

Report the error when we fail to write the updated golden file to disk.
The missing error check was caught by staticcheck.

EwanValentine/dep,EwanValentine/dep,golang/dep,ibrasho-forks/dep,golang/dep,ibrasho-forks/dep,golang/dep