Correct errno messages
This commit is contained in:
parent
cbefa96bad
commit
58646a936e
|
@ -1749,6 +1749,10 @@ msgstr ""
|
||||||
msgid "No space left on device"
|
msgid "No space left on device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: py/moduerrno.c
|
||||||
|
msgid "No such device"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c
|
#: py/moduerrno.c
|
||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1856,6 +1860,10 @@ msgstr ""
|
||||||
msgid "Only one color can be transparent at a time"
|
msgid "Only one color can be transparent at a time"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: py/moduerrno.c
|
||||||
|
msgid "Operation not permitted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/espressif/bindings/espidf/__init__.c ports/espressif/esp_error.c
|
#: ports/espressif/bindings/espidf/__init__.c ports/espressif/esp_error.c
|
||||||
msgid "Operation or feature not supported"
|
msgid "Operation or feature not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -2521,10 +2529,6 @@ msgstr ""
|
||||||
msgid "Unsupported format"
|
msgid "Unsupported format"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c
|
|
||||||
msgid "Unsupported operation"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/espressif/common-hal/dualbank/__init__.c
|
#: ports/espressif/common-hal/dualbank/__init__.c
|
||||||
msgid "Update Failed"
|
msgid "Update Failed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -140,7 +140,7 @@ const char *mp_common_errno_to_str(mp_obj_t errno_val, char *buf, size_t len) {
|
||||||
const compressed_string_t *desc = NULL;
|
const compressed_string_t *desc = NULL;
|
||||||
switch (MP_OBJ_SMALL_INT_VALUE(errno_val)) {
|
switch (MP_OBJ_SMALL_INT_VALUE(errno_val)) {
|
||||||
case EPERM:
|
case EPERM:
|
||||||
desc = MP_ERROR_TEXT("Permission denied");
|
desc = MP_ERROR_TEXT("Operation not permitted");
|
||||||
break;
|
break;
|
||||||
case ENOENT:
|
case ENOENT:
|
||||||
desc = MP_ERROR_TEXT("No such file/directory");
|
desc = MP_ERROR_TEXT("No such file/directory");
|
||||||
|
@ -155,7 +155,7 @@ const char *mp_common_errno_to_str(mp_obj_t errno_val, char *buf, size_t len) {
|
||||||
desc = MP_ERROR_TEXT("File exists");
|
desc = MP_ERROR_TEXT("File exists");
|
||||||
break;
|
break;
|
||||||
case ENODEV:
|
case ENODEV:
|
||||||
desc = MP_ERROR_TEXT("Unsupported operation");
|
desc = MP_ERROR_TEXT("No such device");
|
||||||
break;
|
break;
|
||||||
case EINVAL:
|
case EINVAL:
|
||||||
desc = MP_ERROR_TEXT("Invalid argument");
|
desc = MP_ERROR_TEXT("Invalid argument");
|
||||||
|
|
Loading…
Reference in New Issue