update plugin assertion errors

This commit is contained in:
Andre Staltz 2024-01-02 13:14:19 +02:00
parent 04161ad9db
commit e0af1c5669
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 2 additions and 2 deletions

View File

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