diff options
| author | Damien George | 2017-06-15 12:02:14 +1000 |
|---|---|---|
| committer | Damien George | 2017-06-15 12:02:14 +1000 |
| commit | 2bf5a947b2b01f2be6c7b05707391dd09b240ad0 (patch) | |
| tree | b877cdfe14d17ff129d7e60a587b92aed39023e7 /stmhal/pin.c | |
| parent | 48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (diff) | |
stmhal: Make error messages more consistent across peripherals.
Diffstat (limited to 'stmhal/pin.c')
| -rw-r--r-- | stmhal/pin.c | 2 |
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__() |
