mirror of https://codeberg.org/pzp/pzp-sync.git
update plugin assertion errors
This commit is contained in:
parent
0cd2a56fc8
commit
26dcefc459
|
@ -32,7 +32,7 @@ function isMuxrpcMissingError(err, namespace, methodName) {
|
||||||
* @returns {asserts peer is { db: PPPPPDB }}
|
* @returns {asserts peer is { db: PPPPPDB }}
|
||||||
*/
|
*/
|
||||||
function assertDBExists(peer) {
|
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 }}
|
* @returns {asserts peer is { goals: PPPPPGoals }}
|
||||||
*/
|
*/
|
||||||
function assertGoalsExists(peer) {
|
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 }}
|
* @returns {asserts peer is { shse: SHSE }}
|
||||||
*/
|
*/
|
||||||
function assertSHSEExists(peer) {
|
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')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue