Skip to content

Misleading error message when adding invalid edges inside of compounds #4

Description

@leMaik

When trying to insert an edge in a compound from an existing input port to a non-existing output port (e.g. cmpt = Graph.addEdge({ from: @someInput, to: '@invalidOutput' }, cmpt), the following error is thrown by Graphtools:

Error: The target node "#comp_1" does not have the ingoing port "invalidOutput".

I expected the following error:

Error: The target node "#comp_1" does not have the outgoing port "invalidOutput".

Edit: The error is thrown from here: https://github.com/BuggyOrg/graphtools/blob/master/src/graph/edge.js#L69

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions