From e0af1c56695e43f08b30a663c08174e91ea87f99 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Tue, 2 Jan 2024 13:14:19 +0200 Subject: [PATCH] update plugin assertion errors --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index cf1470f..3293af2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,7 +27,7 @@ const makeDebug = require('debug') * @returns {asserts peer is { db: PPPPPDB }} */ function assertDBPlugin(peer) { - if (!peer.db) throw new Error('gc plugin requires ppppp-db plugin') + if (!peer.db) throw new Error('"gc" plugin requires "db" plugin') } /** @@ -35,7 +35,7 @@ function assertDBPlugin(peer) { * @returns {asserts peer is { goals: PPPPPGoal }} */ function assertGoalsPlugin(peer) { - if (!peer.goals) throw new Error('gc plugin requires ppppp-goals plugin') + if (!peer.goals) throw new Error('"gc" plugin requires "goals" plugin') } /**