aboutsummaryrefslogtreecommitdiff
path: root/examples/wrap.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 16:53:42 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 16:53:42 -0400
commit0060686646561b099e3c8b9908d82cc22eba433a (patch)
treeaf28f64b57252fdbf8262adfcc625c58dedc43fa /examples/wrap.tm
parent835eb7e89627eea923bfd57bdacba7065c6b1d4c (diff)
Update examples
Diffstat (limited to 'examples/wrap.tm')
-rw-r--r--examples/wrap.tm2
1 files changed, 1 insertions, 1 deletions
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)