My Electron app works fine on my Mac, but an end-user is facing a weird startup bug. Electron shows this message, which is not very helpful:
So I was looking for a way to log all exceptions to a file, but could not find a solution.
Is there a preferred way of logging such kind of errors to a file, e.g. in the application’s working directory under “Application Support”?
I am also wondering if there’s a way to intercept all exceptions and use a custom dialog instead.