From 47a5607a691a576928896f21bcf563c011dc64e5 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 20 Apr 2026 16:58:34 +0200 Subject: wrap errors --- src/blueprint | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/blueprint b/src/blueprint index 4e73887..5a40650 100755 --- a/src/blueprint +++ b/src/blueprint @@ -21,7 +21,11 @@ local commands = { local command = commands[arg[1]] if command then - command() + local status, ret = pcall(command) + + if not status then + print('error: ' .. ret) + end else print([[blueprint [options...] -- cgit v1.2.3-70-g09d2