From 24116eff231df034c3ffed0529a4790545ba5412 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 8 May 2018 12:44:27 -0700 Subject: [PATCH] Tweak exception message. --- shared-bindings/audiobusio/I2SOut.c | 2 +- shared-bindings/audioio/AudioOut.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-bindings/audiobusio/I2SOut.c b/shared-bindings/audiobusio/I2SOut.c index b177d353cd..e0271f6977 100644 --- a/shared-bindings/audiobusio/I2SOut.c +++ b/shared-bindings/audiobusio/I2SOut.c @@ -221,7 +221,7 @@ STATIC mp_obj_t audiobusio_i2sout_obj_pause(mp_obj_t self_in) { raise_error_if_deinited(common_hal_audiobusio_i2sout_deinited(self)); if (!common_hal_audiobusio_i2sout_get_playing(self)) { - mp_raise_RuntimeError("No sample playing cannot pause"); + mp_raise_RuntimeError("Not playing"); } common_hal_audiobusio_i2sout_pause(self); return mp_const_none; diff --git a/shared-bindings/audioio/AudioOut.c b/shared-bindings/audioio/AudioOut.c index 9d79bfbb52..6c91c5a4d5 100644 --- a/shared-bindings/audioio/AudioOut.c +++ b/shared-bindings/audioio/AudioOut.c @@ -218,7 +218,7 @@ STATIC mp_obj_t audioio_audioout_obj_pause(mp_obj_t self_in) { raise_error_if_deinited(common_hal_audioio_audioout_deinited(self)); if (!common_hal_audioio_audioout_get_playing(self)) { - mp_raise_RuntimeError("No sample playing cannot pause"); + mp_raise_RuntimeError("Not playing"); } common_hal_audioio_audioout_pause(self); return mp_const_none;