diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/process/process.ts | 3 | ||||
-rw-r--r-- | server/lib/activitypub/videos.ts | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/server/lib/activitypub/process/process.ts b/server/lib/activitypub/process/process.ts index 7edf3bba0..094219489 100644 --- a/server/lib/activitypub/process/process.ts +++ b/server/lib/activitypub/process/process.ts | |||
@@ -40,8 +40,7 @@ async function processActivities (activities: Activity[], signatureActor?: Actor | |||
40 | try { | 40 | try { |
41 | await activityProcessor(activity, inboxActor) | 41 | await activityProcessor(activity, inboxActor) |
42 | } catch (err) { | 42 | } catch (err) { |
43 | logger.warn(err.stack) | 43 | logger.warn('Cannot process activity %s.', activity.type, { error: err.stack }) |
44 | logger.warn('Cannot process activity %s.', activity.type, err) | ||
45 | } | 44 | } |
46 | } | 45 | } |
47 | } | 46 | } |
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index e7b516129..907fe458d 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -187,7 +187,7 @@ async function getOrCreateAccountAndVideoAndChannel (videoObject: VideoTorrentOb | |||
187 | } | 187 | } |
188 | 188 | ||
189 | videoObject = await fetchRemoteVideo(videoObject) | 189 | videoObject = await fetchRemoteVideo(videoObject) |
190 | if (!videoObject) throw new Error('Cannot fetch remote video') | 190 | if (!videoObject) throw new Error('Cannot fetch remote video (maybe invalid...)') |
191 | } | 191 | } |
192 | 192 | ||
193 | if (!actor) { | 193 | if (!actor) { |