check if api call succeeds. otherwise at least alert the user.
Merge pull request #1331 from veroc/3513_1

check if api call succeeds. otherwise at least alert the user.