Put checks for error returns in the right place.
1 file changed