update plugin assertion errors

This commit is contained in:
Andre Staltz 2024-01-02 13:25:17 +02:00
parent 908f7507c8
commit 000dd016f4
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 4 additions and 5 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules
.nyc_output
coverage
pnpm-lock.yaml
pnpm-lock.yaml
*.d.ts

View File

@ -27,8 +27,7 @@ const b4a = require('b4a')
* @returns {asserts peer is { db: PPPPPDB }}
*/
function assertDBPlugin(peer) {
// prettier-ignore
if (!peer.db) throw new Error('promise plugin plugin requires ppppp-db plugin')
if (!peer.db) throw new Error('"promise" plugin requires "db" plugin')
}
/**
@ -36,8 +35,7 @@ function assertDBPlugin(peer) {
* @returns {asserts peer is { set: PPPPPSet }}
*/
function assertSetPlugin(peer) {
// prettier-ignore
if (!peer.set) throw new Error('promise plugin plugin requires ppppp-set plugin')
if (!peer.set) throw new Error('"promise" plugin requires "set" plugin')
}
/**