aboutsummaryrefslogtreecommitdiffhomepage
path: root/testscripts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-22 17:09:43 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-22 18:54:34 +0200
commit288be1976d766f8b5c693da1830866cff616241d (patch)
treea81b12dce3a8e4c6cf60dadcb2fa8b32e3ea01c9 /testscripts
parent9a0370e8eb71fed3ac04984020b6aa95c43f22ab (diff)
downloadhugo-288be1976d766f8b5c693da1830866cff616241d.tar.gz
hugo-288be1976d766f8b5c693da1830866cff616241d.zip
Fix "unknown command" message when no suggestion
Updates #10953
Diffstat (limited to 'testscripts')
-rw-r--r--testscripts/commands/commands_errors.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/testscripts/commands/commands_errors.txt b/testscripts/commands/commands_errors.txt
index fcce6197f..54448361d 100644
--- a/testscripts/commands/commands_errors.txt
+++ b/testscripts/commands/commands_errors.txt
@@ -1,7 +1,12 @@
# Testing various error situations.
! hugo mods
+stderr 'unknown command "mods" for "hugo"'
stderr 'Did you mean this\?'
! hugo mod clea
stderr 'Did you mean this\?'
+stderr 'clean'
+
+! hugo mod foo
+stderr 'unknown command "foo" for "hugo mod"' \ No newline at end of file