Add grunt-cli to dev modules
Handle API error with rejected promise