Merge pull request #2191 from isocolsky/send_error
Give feedback when email cannot be verified (as per Insight)
This commit is contained in:
commit
f886e36481
5 changed files with 9 additions and 7 deletions
|
|
@ -223,6 +223,8 @@ InsightStorage.prototype.setItem = function(name, value, callback) {
|
|||
return callback('BADCREDENTIALS: Invalid username or password');
|
||||
} else if (response.statusCode === 406) {
|
||||
return callback('OVERQUOTA: Quota exceeded');
|
||||
} else if (response.statusCode === 501) {
|
||||
return callback('EMAILERROR: Error sending verification email');
|
||||
} else if (response.statusCode !== 200) {
|
||||
return callback('Unable to store data on insight');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue