summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-11-20 23:04:58 -0500
committerDan Halbert <halbert@halwitz.org>2018-11-20 23:04:58 -0500
commit1763ffe2450fa07c74db225cc5ef3a6e2feb669b (patch)
tree0c6bf99479b1c135928aea9a9d475f01c84ce9d4 /py/runtime.c
parentc424ad844b0241483d5968b7c4f158f61d498752 (diff)
More UUID work; use mp_raise for exceptions
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 3d7a97f58..339978dad 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1599,6 +1599,9 @@ NORETURN void mp_raise_OSError(int errno_) {
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(errno_)));
}
+NORETURN void mp_raise_OSError_msg(const compressed_string_t *msg) {
+ mp_raise_msg(&mp_type_OSError, msg);
+}
NORETURN void mp_raise_NotImplementedError(const compressed_string_t *msg) {
mp_raise_msg(&mp_type_NotImplementedError, msg);