Fix documentation of error functions