Update cli_example with exception checking
Don't add line numbers when raising an error