return BackupError and not SubdomainError

This commit is contained in:
Girish Ramakrishnan
2015-11-06 18:08:25 -08:00
parent b6f1ad75b8
commit de471b0012
2 changed files with 3 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ function BackupsError(reason, errorOrMessage) {
util.inherits(BackupsError, Error);
BackupsError.EXTERNAL_ERROR = 'external error';
BackupsError.INTERNAL_ERROR = 'internal error';
BackupsError.MISSING_CREDENTIALS = 'missing credentials';
function getAllPaged(page, perPage, callback) {
assert.strictEqual(typeof page, 'number');