From 0060686646561b099e3c8b9908d82cc22eba433a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 16:53:42 -0400 Subject: Update examples --- examples/wrap.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/wrap.tm') diff --git a/examples/wrap.tm b/examples/wrap.tm index 0c3eac79..54198193 100644 --- a/examples/wrap.tm +++ b/examples/wrap.tm @@ -82,7 +82,7 @@ func main(files:[Path], width=80, inplace=no, min_split=3, rewrap=yes, hyphen=UN files = [(/dev/stdin)] for file in files: - text := file:read() + text := file:read():or_exit("Could not read file: $(file.text_content)") if rewrap: text = unwrap(text) -- cgit v1.2.3