consistent error throwing (#4470)

should use `throw` inside `.catch`.
This commit is contained in:
Vitaly Tomilov
2017-12-29 17:06:55 +00:00
committed by GitHub
parent bb053301e5
commit 6ba939994d

View File

@@ -1305,7 +1305,7 @@ export class PostgresStorageAdapter {
if (err.code === PostgresRelationDoesNotExistError) {
return [];
}
return Promise.reject(err);
throw err;
})
.then(results => results.map(object => this.postgresObjectToParseObject(className, object, schema)));
}