File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function tryLoadLZ4Module(): LZ4Module | undefined {
77 return require ( 'lz4' ) ; // eslint-disable-line global-require
88 } catch ( err ) {
99 if ( ! ( err instanceof Error ) || ! ( 'code' in err ) ) {
10+ // eslint-disable-next-line no-console
1011 console . warn ( 'Unexpected error loading LZ4 module: Invalid error object' , err ) ;
1112 return undefined ;
1213 }
@@ -16,11 +17,13 @@ function tryLoadLZ4Module(): LZ4Module | undefined {
1617 }
1718
1819 if ( err . code === 'ERR_DLOPEN_FAILED' ) {
20+ // eslint-disable-next-line no-console
1921 console . warn ( 'LZ4 native module failed to load: Architecture or version mismatch' , err ) ;
2022 return undefined ;
2123 }
2224
2325 // If it's not a known error, return undefined
26+ // eslint-disable-next-line no-console
2427 console . warn ( 'Unknown error loading LZ4 module: Unhandled error code' , err ) ;
2528 return undefined ;
2629 }
You can’t perform that action at this time.
0 commit comments