File tree Expand file tree Collapse file tree
sdk/runanywhere-web/packages/llamacpp/src/Foundation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -638,12 +638,24 @@ export class LlamaCppBridge {
638638 }
639639
640640 if ( this . _module && this . _loaded ) {
641- try { this . _module . _rac_shutdown ( ) ; } catch { /* ignore */ }
641+ try {
642+ this . _module . _rac_shutdown ( ) ;
643+ } catch ( err ) {
644+ logger . debug (
645+ `LlamaCpp module shutdown failed (non-fatal): ${ err instanceof Error ? err . message : String ( err ) } ` ,
646+ ) ;
647+ }
642648 }
643649
644650 // Clean up platform adapter
645651 if ( this . _platformAdapter ) {
646- try { this . _platformAdapter . cleanup ( ) ; } catch { /* ignore */ }
652+ try {
653+ this . _platformAdapter . cleanup ( ) ;
654+ } catch ( err ) {
655+ logger . debug (
656+ `Platform adapter cleanup failed (non-fatal): ${ err instanceof Error ? err . message : String ( err ) } ` ,
657+ ) ;
658+ }
647659 this . _platformAdapter = null ;
648660 }
649661
You can’t perform that action at this time.
0 commit comments