From 26dcefc4599695b3b696c5a38b36f0210ea25e80 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Tue, 2 Jan 2024 13:13:27 +0200 Subject: [PATCH] update plugin assertion errors --- lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index d0f16a0..773c646 100644 --- a/lib/index.js +++ b/lib/index.js @@ -32,7 +32,7 @@ function isMuxrpcMissingError(err, namespace, methodName) { * @returns {asserts peer is { db: PPPPPDB }} */ function assertDBExists(peer) { - if (!peer.db) throw new Error('sync requires ppppp-db plugin') + if (!peer.db) throw new Error('"sync" plugin requires "db" plugin') } /** @@ -40,7 +40,7 @@ function assertDBExists(peer) { * @returns {asserts peer is { goals: PPPPPGoals }} */ function assertGoalsExists(peer) { - if (!peer.goals) throw new Error('sync requires ppppp-goals plugin') + if (!peer.goals) throw new Error('"sync" plugin requires "goals" plugin') } /** @@ -48,7 +48,7 @@ function assertGoalsExists(peer) { * @returns {asserts peer is { shse: SHSE }} */ function assertSHSEExists(peer) { - if (!peer.shse) throw new Error('sync requires secret-handshake-ext') + if (!peer.shse) throw new Error('"sync" plugin requires "shse" plugin') } /**