1
0
mirror of synced 2024-11-16 11:03:50 +00:00

Fixed error in error handling :/

This commit is contained in:
Mark van Renswoude 2016-08-07 11:12:39 +02:00
parent 6a1b033f28
commit 55fb51ae0c
3 changed files with 7 additions and 3 deletions

View File

@ -30,7 +30,9 @@ FFMPEGProcessor.prototype.run = function()
{
fs.rename(tempFilename, filename, function(err)
{
logger.error('Could not move ' + tempFilename + ' to ' + filename + ': ' + err.message);
if (err)
logger.error('Could not move ' + tempFilename + ' to ' + filename + ': ' + err);
self.doEnd();
});
}

View File

@ -69,7 +69,8 @@ HTTPFFMPEGProcessor.prototype.cleanup = function()
fs.rename(this.tempFilename, this.filename, function(err)
{
logger.error('Could not move ' + this.tempFilename + ' to ' + this.filename + ': ' + err.message);
if (err)
logger.error('Could not move ' + this.tempFilename + ' to ' + this.filename + ': ' + err);
});
}

View File

@ -48,7 +48,8 @@ HTTPRawProcessor.prototype.cleanup = function()
fs.rename(this.tempFilename, this.filename, function(err)
{
logger.error('Could not move ' + this.tempFilename + ' to ' + this.filename + ': ' + err.message);
if (err)
logger.error('Could not move ' + this.tempFilename + ' to ' + this.filename + ': ' + err);
});
}