aboutsummaryrefslogtreecommitdiff
path: root/examples/natmod/features2
diff options
context:
space:
mode:
authorJim Mussared2020-03-02 22:35:22 +1100
committerDamien George2020-04-05 15:02:06 +1000
commitdef76fe4d9bbc2c342594dc05861b24d7165d274 (patch)
treed04ad778e2421de0a85835227ba5bcb08562ec24 /examples/natmod/features2
parent85858e72dfdc3e941c2e620e94de05ad663138b1 (diff)
all: Use MP_ERROR_TEXT for all error messages.
Diffstat (limited to 'examples/natmod/features2')
-rw-r--r--examples/natmod/features2/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/natmod/features2/main.c b/examples/natmod/features2/main.c
index de83bf2be..1a39700dc 100644
--- a/examples/natmod/features2/main.c
+++ b/examples/natmod/features2/main.c
@@ -52,7 +52,7 @@ STATIC mp_obj_t productf(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_o
mp_buffer_info_t bufinfo;
mp_get_buffer_raise(args[0], &bufinfo, MP_BUFFER_RW);
if (bufinfo.typecode != 'f') {
- mp_raise_ValueError("expecting float array");
+ mp_raise_ValueError(MP_ERROR_TEXT("expecting float array"));
}
// Compute product, store result back in first element of array