Add an --on-error and \onerror to control how the CLI returns errors

Per the Trello card: https://trello.com/c/dI7RM4PB