It's in the documentation: Returns 0 in case of error. All good here. :-)