chore(gql): add todo

This commit is contained in:
blam
2020-08-06 15:22:58 +02:00
parent e93e414fdd
commit 679cc1c72b
@@ -22,6 +22,8 @@ export class CatalogClient {
async list(): Promise<Entity[]> {
const res = await fetch(`${this.baseUrl}/catalog/entities`);
if (!res.ok) {
// todo(blam): need some better way to handle errors here
// experiment with throwing the input errors etc and having graphql versions of that
throw new Error(`NOPE, ${await res.text()}`);
}