aboutsummaryrefslogtreecommitdiff
path: root/stmhal/pin.c
diff options
context:
space:
mode:
authorDamien George2017-06-15 12:02:14 +1000
committerDamien George2017-06-15 12:02:14 +1000
commit2bf5a947b2b01f2be6c7b05707391dd09b240ad0 (patch)
treeb877cdfe14d17ff129d7e60a587b92aed39023e7 /stmhal/pin.c
parent48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (diff)
stmhal: Make error messages more consistent across peripherals.
Diffstat (limited to 'stmhal/pin.c')
-rw-r--r--stmhal/pin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c
index db7596900..4c0d49e7d 100644
--- a/stmhal/pin.c
+++ b/stmhal/pin.c
@@ -176,7 +176,7 @@ const pin_obj_t *pin_find(mp_obj_t user_obj) {
return pin_obj;
}
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin '%s' not a valid pin identifier", mp_obj_str_get_str(user_obj)));
+ nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "Pin(%s) doesn't exist", mp_obj_str_get_str(user_obj)));
}
/// \method __str__()