Minor typo

Now returns a non-zero value on error.