diff options
| -rwxr-xr-x | src/blueprint | 6 |
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...] |