~sircmpwn/cgi-scripts

5222626c61bf84a41321bd023977075d869e5faa — Drew DeVault 4 years ago fe214f8 master
web2gmni: handle fetch errors
1 files changed, 2 insertions(+), 1 deletions(-)

M web2gmi.js
M web2gmi.js => web2gmi.js +2 -1
@@ 129,4 129,5 @@ fetch(args[0])
    const article = reader.parse();
    const readable = new JSDOM(article.content, {url: args[0]});
    console.log(convert(readable.window.document, article.title));
  });
  })
  .catch(() => console.log("An error occured while fetching this page."));