aboutsummaryrefslogtreecommitdiff
path: root/examples/natmod/features1
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/features1
parent85858e72dfdc3e941c2e620e94de05ad663138b1 (diff)
all: Use MP_ERROR_TEXT for all error messages.
Diffstat (limited to 'examples/natmod/features1')
-rw-r--r--examples/natmod/features1/features1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/natmod/features1/features1.c b/examples/natmod/features1/features1.c
index 1bfbe50b9..f865f1887 100644
--- a/examples/natmod/features1/features1.c
+++ b/examples/natmod/features1/features1.c
@@ -45,7 +45,7 @@ STATIC mp_int_t fibonacci_helper(mp_int_t x) {
STATIC mp_obj_t fibonacci(mp_obj_t x_in) {
mp_int_t x = mp_obj_get_int(x_in);
if (x < 0) {
- mp_raise_ValueError("can't compute negative Fibonacci number");
+ mp_raise_ValueError(MP_ERROR_TEXT("can't compute negative Fibonacci number"));
}
return mp_obj_new_int(fibonacci_helper(x));
}