Skip to content

Commit

Permalink
Fix native DLL error handler not catching for non-English languages
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Nov 7, 2018
1 parent 39f9580 commit e2afdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/browser/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PRODUCT_NAME } from 'constants/app'

const isNativeDllError = (err: Error) =>
os.platform() === 'win32' &&
err.message.indexOf('The specified module could not be found') > -1 &&
err.message.indexOf('.node') > -1 &&
err.message.indexOf('dlopen') > -1

process.on('uncaughtException', err => {
Expand Down

0 comments on commit e2afdca

Please sign in to comment.