aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-04-20 16:58:34 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-04-20 16:58:34 +0200
commit47a5607a691a576928896f21bcf563c011dc64e5 (patch)
tree82fc9c460671abc280e3a496ee2d64e3c124a507
parentb7b167284e72aba699a73a1ab9c8a197d7297db2 (diff)
wrap errorsHEADmaster
-rwxr-xr-xsrc/blueprint6
1 files changed, 5 insertions, 1 deletions
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 <command> [options...]