Fixed example missing the error return value.