Let the caller specify error reporting