Skip to content

Commit

Permalink
Clearer error when exported outport isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Mar 21, 2018
1 parent 4664d72 commit 3f8fd7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/protocol/Runtime.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ class RuntimeProtocol extends EventEmitter
socket = noflo.internalSocket.createSocket()
graphSockets[pub] = socket
component = network.processes[internal.process].component
unless component?.outPorts[internal.port]
throw new Error "Exported outport #{internal.port} in node #{internal.process} not found"
component.outPorts[internal.port].attach socket
socket.on 'ip', (ip) =>
switch ip.type
Expand Down

0 comments on commit 3f8fd7e

Please sign in to comment.