From 8af3f37f5a6dec31877b0c67c996cb52f513d020 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 15 Mar 2015 12:58:23 +0200 Subject: client: add util.log_error, use for clone missing dst/src ids --- src/client/model/graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/model') 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; } -- cgit v1.3.1