Commit 550db7a5 authored by Boris Kocherov's avatar Boris Kocherov

catch exception from checkCircular

parent ca3f699a
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
} else { } else {
absolute_url = new URL(url, base_url); absolute_url = new URL(url, base_url);
} }
checkCircular(g, path, absolute_url.href);
return absolute_url; return absolute_url;
} }
...@@ -182,6 +181,7 @@ ...@@ -182,6 +181,7 @@
}); });
}) })
.push(function (json) { .push(function (json) {
checkCircular(g, path, url);
return resolveLocalReference(json, hash); return resolveLocalReference(json, hash);
}) })
.push(undefined, function (err) { .push(undefined, function (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment