Add human readable text for ENOSPC.

This commit is contained in:
Craig Forbes 2019-02-06 14:59:01 -06:00
parent 041a84e8f9
commit 1662e02c1b
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ const char *mp_common_errno_to_str(mp_obj_t errno_val, char *buf, size_t len) {
case EEXIST: desc = translate("File exists"); break;
case ENODEV: desc = translate("Unsupported operation"); break;
case EINVAL: desc = translate("Invalid argument"); break;
case ENOSPC: desc = translate("No space left on device"); break;
case EROFS: desc = translate("Read-only filesystem"); break;
}
if (desc != NULL && desc->length <= len) {