update plugin assertion errors

This commit is contained in:
Andre Staltz 2024-01-02 13:13:27 +02:00
parent 0cd2a56fc8
commit 26dcefc459
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 3 additions and 3 deletions

View File

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