whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Add error callback for bindings

Open thewh1teagle opened this issue 1 year ago • 1 comments

Currently whisper.cpp uses many abort() calls in case of errors. as a result the program just cash in windows/mac/linux without showing error.

Please add a way to register error callback from the bindings instead of crashing

Maybe we can use std::set_terminate

thewh1teagle avatar Aug 19 '24 11:08 thewh1teagle

It would be good if we could at least have a compile option to convert these abort() calls into exceptions, which could then be caught at the top level C API function and return an error code. I do not want any library I use to call abort!

SRHMorris avatar Aug 28 '24 16:08 SRHMorris