summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/moduhashlib.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-02-22 12:36:23 +1100
committerDamien George <damien.p.george@gmail.com>2017-02-22 12:58:11 +1100
commit22a6344ebe032e9e66024614ecbe7d9608fa9288 (patch)
tree7711a540d7bb90914336dcc77fbde28092b7bc75 /cc3200/mods/moduhashlib.c
parent8bb8e97dfe2626b97028f1dad76cdd4050757961 (diff)
downloadmicropython-22a6344ebe032e9e66024614ecbe7d9608fa9288.tar.gz
micropython-22a6344ebe032e9e66024614ecbe7d9608fa9288.zip
cc3200: When raising OSError's use MP_Exxx as arg instead of a string.
Diffstat (limited to 'cc3200/mods/moduhashlib.c')
-rw-r--r--cc3200/mods/moduhashlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/moduhashlib.c b/cc3200/mods/moduhashlib.c
index c22cc8a067..e1145e4d8f 100644
--- a/cc3200/mods/moduhashlib.c
+++ b/cc3200/mods/moduhashlib.c
@@ -93,7 +93,7 @@ STATIC void hash_update_internal(mp_obj_t self_in, mp_obj_t data, bool digest) {
self->digested = false;
}
} else {
- mp_raise_msg(&mp_type_OSError, mpexception_os_request_not_possible);
+ mp_raise_OSError(MP_EPERM);
}
}
@@ -106,7 +106,7 @@ STATIC mp_obj_t hash_read (mp_obj_t self_in) {
}
} else if (self->c_size < self->b_size) {
// it's a fixed len block which is still incomplete
- mp_raise_msg(&mp_type_OSError, mpexception_os_request_not_possible);
+ mp_raise_OSError(MP_EPERM);
}
if (!self->digested) {