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') } /**