pietgeursen / patch-gatherings

A patchcore plugin for arranging gatherings on secure scuttlebutt
37 stars 2 forks source link

Non-observables being passsed to when() #11

Closed christianbundy closed 4 years ago

christianbundy commented 6 years ago

I've configured when() to throw a stacktrace when we're (ab)using it with non-observables, and a couple came from this module:

Trace: Non-observable passed to when()
    at When (/home/christianbundy/Source/patchbay/node_modules/mutant/when.js:9:13)
    at title (/home/christianbundy/Source/patchbay/node_modules/patch-gatherings/gathering/html/title.js:16:7)
    at /home/christianbundy/Source/patchbay/node_modules/depject/apply.js:18:30
    at Object.gatheringLayout (/home/christianbundy/Source/patchbay/node_modules/patch-gatherings/gathering/html/layout/card.js:50:9)
    at Object.layout (/home/christianbundy/Source/patchbay/node_modules/depject/apply.js:18:30)
    at renderGathering (/home/christianbundy/Source/patchbay/node_modules/patch-gatherings/gathering/html/render.js:45:28)
    at /home/christianbundy/Source/patchbay/node_modules/depject/apply.js:18:30
    at add (/home/christianbundy/Source/patchbay/node_modules/pull-scroll/index.js:42:15)
    at /home/christianbundy/Source/patchbay/node_modules/pull-scroll/index.js:71:11
    at /home/christianbundy/Source/patchbay/node_modules/pull-stream/sinks/drain.js:24:37
    at /home/christianbundy/Source/patchbay/node_modules/pull-next/index.js:29:11
    at /home/christianbundy/Source/patchbay/node_modules/pull-stream/throughs/through.js:19:9
    at PacketStreamSubstream.weird.read (/home/christianbundy/Source/patchbay/node_modules/muxrpc/pull-weird.js:33:7)
    at PacketStream._onstream (/home/christianbundy/Source/patchbay/node_modules/packet-stream/index.js:204:12)
    at PacketStream.write (/home/christianbundy/Source/patchbay/node_modules/packet-stream/index.js:135:41)
    at /home/christianbundy/Source/patchbay/node_modules/muxrpc/pull-weird.js:56:15

Trace: Non-observable passed to when()
    at When (/home/christianbundy/Source/patchbay/node_modules/mutant/when.js:9:13)
    at description (/home/christianbundy/Source/patchbay/node_modules/patch-gatherings/gathering/html/description.js:17:7)
    at /home/christianbundy/Source/patchbay/node_modules/depject/apply.js:18:30
    at Object.gatheringLayout (/home/christianbundy/Source/patchbay/node_modules/patch-gatherings/gathering/html/layout/card.js:51:9)
    at Object.layout (/home/christianbundy/Source/patchbay/node_modules/depject/apply.js:18:30)
    at renderGathering (/home/christianbundy/Source/patchbay/node_modules/patch-gatherings/gathering/html/render.js:45:28)
    at /home/christianbundy/Source/patchbay/node_modules/depject/apply.js:18:30
    at add (/home/christianbundy/Source/patchbay/node_modules/pull-scroll/index.js:42:15)
    at /home/christianbundy/Source/patchbay/node_modules/pull-scroll/index.js:71:11
    at /home/christianbundy/Source/patchbay/node_modules/pull-stream/sinks/drain.js:24:37
    at /home/christianbundy/Source/patchbay/node_modules/pull-next/index.js:29:11
    at /home/christianbundy/Source/patchbay/node_modules/pull-stream/throughs/through.js:19:9
    at PacketStreamSubstream.weird.read (/home/christianbundy/Source/patchbay/node_modules/muxrpc/pull-weird.js:33:7)
    at PacketStream._onstream (/home/christianbundy/Source/patchbay/node_modules/packet-stream/index.js:204:12)
    at PacketStream.write (/home/christianbundy/Source/patchbay/node_modules/packet-stream/index.js:135:41)
    at /home/christianbundy/Source/patchbay/node_modules/muxrpc/pull-weird.js:56:15