kwent / syno

Simple Node.js wrapper and CLI for Synology DSM REST API 5.x and 6.x.
http://kwent.github.io/syno
MIT License
316 stars 51 forks source link

Manage API errors #4

Closed kwent closed 9 years ago

kwent commented 9 years ago

Example:

syno dl listTasks -u https://bad_password@demo.synology.com:5001
Error: No such account or incorrect password
kwent commented 9 years ago

Wrong since different API can return the same error code for a different error reason... We need to implements API Error Code Status for each API to do this kind of thing.