Skip to content

Commit c9ab790

Browse files
vitaly-tflovilmart
authored andcommitted
consistent error throwing (#4470)
should use `throw` inside `.catch`.
1 parent cdda7d5 commit c9ab790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ export class PostgresStorageAdapter implements StorageAdapter {
13121312
if (err.code === PostgresRelationDoesNotExistError) {
13131313
return [];
13141314
}
1315-
return Promise.reject(err);
1315+
throw err;
13161316
})
13171317
.then(results => results.map(object => this.postgresObjectToParseObject(className, object, schema)));
13181318
}

0 commit comments

Comments
 (0)