Skip to content
Snippets Groups Projects
Commit 2503b595 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

stmhal/moduos: getcwd(): Use mp_obj_new_exception_arg1().

Argument types were converted, but old function call of
mp_obj_new_exception_msg_varg() remained.
parent 12401f33
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ STATIC mp_obj_t os_getcwd(void) {
FRESULT res = f_getcwd(buf, sizeof buf);
if (res != FR_OK) {
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res])));
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res])));
}
return mp_obj_new_str(buf, strlen(buf), false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment