Skip to content

url/file information is missing when OSError is raised in fsspec_xrootd/xrootd.py  #67

Description

@bockjoo

For example,

  File "/home/bockjoo/opt/cmsio9/T2/ops/cmsio/anaconda3/lib/python3.12/site-packages/fsspec_xrootd/xrootd.py", line 216, in _open
    raise OSError(f"Failed to open file: {status.message}")
^^^^^^^^^^^^^^^
OSError: Failed to open file: [ERROR] Operation expired

It fails to open an xrootd file and just says 'Operation expired', but does not show the file (url) name.
I think it needs to include the url.
Any
raise OSError
in the file is missing the file or url information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions