From 22a71852032ef142e3b6c7d08e3a019929f0b085 Mon Sep 17 00:00:00 2001 From: Michael Connor Buchan Date: Sun, 4 Feb 2024 01:07:21 +0000 Subject: [PATCH] feat: Add more descriptive error on out-of-memory --- cyal/exceptions.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyal/exceptions.pyx b/cyal/exceptions.pyx index f5c6461..2f63cd0 100644 --- a/cyal/exceptions.pyx +++ b/cyal/exceptions.pyx @@ -82,7 +82,7 @@ cdef check_alc_error(alc.ALCdevice *dev): elif errcode == alc.ALC_INVALID_VALUE: raise InvalidAlcValueError() elif errcode == alc.ALC_OUT_OF_MEMORY: - raise MemoryError() + raise MemoryError("OpenAL is out of memory") else: raise UnknownAlcError(alc_errcode=errcode)