diff options
author | sanine <sanine.not@pm.me> | 2023-11-12 05:17:19 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-11-12 05:17:19 -0600 |
commit | 444b2b5abfbb70473b0785b38eaba1df4197ae69 (patch) | |
tree | 98eeb63082c679f8944c740f466c1e56aef24aad /src/mind/topology.js | |
parent | e3a042a7a5c041dad63255965576346377e4f823 (diff) |
refactor genome to include size information
Diffstat (limited to 'src/mind/topology.js')
-rw-r--r-- | src/mind/topology.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mind/topology.js b/src/mind/topology.js index 9c5ecf7..9f2569d 100644 --- a/src/mind/topology.js +++ b/src/mind/topology.js @@ -49,11 +49,11 @@ function is_hidden(n, index) { export function network_connect(n, source, sink, weight) { if (is_input(n, sink)) { // inputs cannot be sinks - throw new Error("attempt to use input as sink"); + throw new Error(`attempt to use input as sink (${source} -> ${sink})`); } if (is_output(n, source)) { // outputs cannot be sources - throw new Error("attempt to use output as source"); + throw new Error(`attempt to use output as source (${source} -> ${sink})`); } return create({ |