Merge pull request #59 from camillobruni/2025-03-26_cli_error_handling

Throw errors in cli.js