From 897dac354dfeb92f40812c22f0de591066f7bd92 Mon Sep 17 00:00:00 2001 From: DC Date: Sat, 16 Jul 2016 12:08:42 -0700 Subject: [PATCH] onError -> error (#716) --- renderer/controllers/torrent-list-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/controllers/torrent-list-controller.js b/renderer/controllers/torrent-list-controller.js index e1e27ff5..a229e861 100644 --- a/renderer/controllers/torrent-list-controller.js +++ b/renderer/controllers/torrent-list-controller.js @@ -239,7 +239,7 @@ function findFilesRecursive (paths, cb) { function deleteFile (path) { if (!path) return fs.unlink(path, function (err) { - if (err) dispatch('onError', err) + if (err) dispatch('error', err) }) }