Skip to content

Report OSErrors in a more human-readable way #221

Closed
@dhalbert

Description

@dhalbert
>>> import os
>>> os.mkdir("foo34")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: 30
>>> os.rename("main.py", "foo.py")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: 30

It would be better to give some indication that the filesystem was read-only instead of a numeric error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions