Skip to content
Snippets Groups Projects
Commit b1b8b10f authored by deuce's avatar deuce
Browse files

Add logging when adding files.

parent ad4eab9c
Branches
Tags
No related merge requests found
......@@ -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});
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment