From 638f926d3af99a7912992b4a442b7d23c18d58f7 Mon Sep 17 00:00:00 2001 From: Gaurav Nelson Date: Mon, 4 Sep 2017 12:36:00 +1000 Subject: [PATCH] Added a message which shows up when there are no hyperlinks in the provided asciidoc file --- asciidoc-link-check | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asciidoc-link-check b/asciidoc-link-check index a13c47c..6adbf53 100755 --- a/asciidoc-link-check +++ b/asciidoc-link-check @@ -43,6 +43,9 @@ stream.on('data', function (chunk) { asciidoc += chunk.toString(); }).on('end', function () { asciidocLinkCheck(asciidoc, opts, function (err, results) { + if ((results.length === 0) && !(error)) { + console.log(chalk.yellow('No hyperlinks found!')) + } results.forEach(function (result) { if(result.status === 'dead') { error = true;