Nexmo / nexmo-cli

Nexmo CLI (Command Line Interface)
https://nexmo.com
MIT License
78 stars 52 forks source link

Recreating a user with the same name returns an irrelevant error message. #165

Closed tchan408 closed 5 years ago

tchan408 commented 5 years ago

Steps to reproduce

Use the command nexmo user:create name=user1 (or any other use name)

enter again the command with the same user name nexmo user:create name=user1 we get the error message "TypeError: Cannot read property 'id' of null at Response.userCreate "

Expected behavior

It should display a relevant error message.

Actual behavior

It gets an exception error.

System configuration

Nexmo CLI version nexmo -V 0.4.6-beta-1

Node version: node -v v8.9.4

NPM version: npm -v 6.1.0

Operating system: macOS 10.13.3 (17D47)