Skip to content

Commit 9c0af63

Browse files
committed
Warn when reaching an unknown state
1 parent 1df6fc2 commit 9c0af63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/cli2md.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
when STATE_INITIAL
8383
puts CGI.escapeHTML(line.lstrip)
8484
next
85+
else
86+
warn "Unknown state #{state} on line #{line_num}: #{line}"
8587
end
8688
end
8789

0 commit comments

Comments
 (0)