Skip to content

Commit

Permalink
feat: Add more descriptive error on out-of-memory
Browse files Browse the repository at this point in the history
  • Loading branch information
mcb2003 committed Feb 4, 2024
1 parent f3cea3f commit 22a7185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyal/exceptions.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 22a7185

Please sign in to comment.