From b1b8b10f2e28fff8a4e73b7a2f4af4813ad305d3 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 15 Jan 2016 11:03:26 +0000 Subject: [PATCH] Add logging when adding files. --- exec/load/binkp.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exec/load/binkp.js b/exec/load/binkp.js index 356838e96a..4ea053535d 100644 --- a/exec/load/binkp.js +++ b/exec/load/binkp.js @@ -766,9 +766,13 @@ BinkP.prototype.addFile = function(path, sendas) if (sendas === undefined) sendas = file_getname(path); - if (!file.open("rb", true)) + if (!file.open("rb", true)) { + log(LOG_WARNING, "Unable to open '"+file.name+"'. Not sending."); return false; + } if (this.ver1_1) this.senteob = false; + if (this.debug) + log(LOG_DEBUG, "Adding '"+path+"' as '"+sendas+"'"); this.tx_queue.push({file:file, sendas:sendas}); }; -- GitLab