diff --git a/exec/load/binkp.js b/exec/load/binkp.js index 356838e96aea0f79cfc57dbe8dbf4b96424fdaa5..4ea053535d14336200f3881c2ff5b0c02b2aed1c 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}); };