summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-15 12:58:23 +0200
committerAlon Levy <alon@pobox.com>2015-03-15 12:58:23 +0200
commit8af3f37f5a6dec31877b0c67c996cb52f513d020 (patch)
tree7fecd3a7fd072d02c59aafefd3eba7c2f8a712e3 /src/client/model
parent4e5ca4fb71b04ed7584669878ad9c3644ac5d4ae (diff)
client: add util.log_error, use for clone missing dst/src ids
Diffstat (limited to 'src/client/model')
-rw-r--r--src/client/model/graph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js
index 9662378c..f8783127 100644
--- a/src/client/model/graph.js
+++ b/src/client/model/graph.js
@@ -796,11 +796,11 @@ function Graph(spec) {
link_spec.__dst = find_node__by_id(dst_id);
if (null === link_spec.__src) {
- console.log("src_id not found: " + src_id);
+ util.log_error("src_id not found: " + src_id);
return null;
}
if (null === link_spec.__dst) {
- console.log("dst_id not found: " + dst_id);
+ util.log_error("dst_id not found: " + dst_id);
return null;
}