diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index f43b73e49..13bf0b6a2 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -473,7 +473,7 @@ export class VideoModel extends Model<VideoModel> { | |||
473 | 473 | ||
474 | return Promise.all(tasks) | 474 | return Promise.all(tasks) |
475 | .catch(err => { | 475 | .catch(err => { |
476 | logger.error('Some errors when removing files of video %s in after destroy hook.', instance.uuid, err) | 476 | logger.error('Some errors when removing files of video %s in after destroy hook.', instance.uuid, { err }) |
477 | }) | 477 | }) |
478 | } | 478 | } |
479 | 479 | ||
@@ -1213,7 +1213,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1213 | 1213 | ||
1214 | } catch (err) { | 1214 | } catch (err) { |
1215 | // Auto destruction... | 1215 | // Auto destruction... |
1216 | this.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', err)) | 1216 | this.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', { err })) |
1217 | 1217 | ||
1218 | throw err | 1218 | throw err |
1219 | } | 1219 | } |