Improved messages

merge-requests/2/head
gardenapple 3 years ago
parent c5f1a1efe7
commit 0df0fbd3b4
No known key found for this signature in database
GPG Key ID: CAF17E9ABE789268

@ -231,7 +231,7 @@ The --properties option accepts a comma-separated list of values (with no spaces
Text-content and Html-content are mutually exclusive, and are always printed last. Text-content and Html-content are mutually exclusive, and are always printed last.
Default value is "html-title,html-content".`) Default value is "html-title,html-content".`)
.wrap(Math.min(yargs.terminalWidth(), 110)) .wrap(Math.min(yargs.terminalWidth(), 120))
.strict() .strict()
.parse(); .parse();
@ -329,7 +329,7 @@ if (inputIsFromStdin) {
if (!args["quiet"]) { if (!args["quiet"]) {
console.error("Reading..."); console.error("Reading...");
if (!documentURL) if (!documentURL)
console.error("Note: piping input with unknown " + console.error("Warning: piping input with unknown " +
"URL. This means that relative links will " + "URL. This means that relative links will " +
"be broken. Supply the --base parameter to fix.") "be broken. Supply the --base parameter to fix.")
} }
@ -410,7 +410,7 @@ function onLoadDOM(dom) {
const reader = new Readability(document); const reader = new Readability(document);
const article = reader.parse(); const article = reader.parse();
if (!article) { if (!article) {
console.error("Couldn't process document. This error usually means that the input document is empty."); console.error("Couldn't process document.");
setErrored(ExitCodes.dataError); setErrored(ExitCodes.dataError);
return; return;
} }

Loading…
Cancel
Save