mirror of https://codeberg.org/pzp/pzp-gc.git
update plugin assertion errors
This commit is contained in:
parent
04161ad9db
commit
e0af1c5669
|
@ -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')
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue