Refactor main.js: torrent list controller
This commit is contained in:
@@ -116,6 +116,12 @@ function getApproxNumTorrents (state) {
|
||||
|
||||
// An uncaught error happened in the main process or in one of the windows
|
||||
function logUncaughtError (procName, err) {
|
||||
console.error('uncaught error', procName, err)
|
||||
|
||||
// Not initialized yet? Ignore.
|
||||
// Hopefully uncaught errors immediately on startup are fixed in dev
|
||||
if (!telemetry) return
|
||||
|
||||
var message, stack
|
||||
if (typeof err === 'string') {
|
||||
message = err
|
||||
|
||||
Reference in New Issue
Block a user