mirror of https://codeberg.org/pzp/pzp-dict.git
update plugin assertion errors
This commit is contained in:
parent
d44a047834
commit
32a51697e4
|
@ -67,7 +67,7 @@ function fromSubdomain(subdomain) {
|
||||||
* @returns {asserts peer is { db: PPPPPDB, close: ClosableHook }}
|
* @returns {asserts peer is { db: PPPPPDB, close: ClosableHook }}
|
||||||
*/
|
*/
|
||||||
function assertDBPlugin(peer) {
|
function assertDBPlugin(peer) {
|
||||||
if (!peer.db) throw new Error('dict plugin requires ppppp-db plugin')
|
if (!peer.db) throw new Error('"dict" plugin requires "db" plugin')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue