From 73b2fee7cd1ebba4cda70506c6c93a9e09cf5e27 Mon Sep 17 00:00:00 2001 From: tokebe <43009413+tokebe@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:15:16 -0400 Subject: [PATCH] fix: SRIResolverFailiure -> SRINodeNormFailure --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index e6c116b7..cfe26747 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ import QEdge2APIEdgeHandler from './qedge2apiedge'; import LogEntry, { StampedLog } from './log_entry'; import { promises as fs } from 'fs'; import { getDescendants } from '@biothings-explorer/node-expansion'; -import { resolveSRI, SRIResolverFailiure } from 'biomedical_id_resolver'; +import { resolveSRI, SRINodeNormFailure } from 'biomedical_id_resolver'; import InferredQueryHandler from './inferred_mode/inferred_mode'; import KGNode from './graph/kg_node'; import KGEdge from './graph/kg_edge'; @@ -418,7 +418,7 @@ export default class TRAPIQueryHandler { this.logs = [...this.logs, ...queryGraphHandler.logs]; return queryEdges; } catch (err) { - if (err instanceof InvalidQueryGraphError || err instanceof SRIResolverFailiure) { + if (err instanceof InvalidQueryGraphError || err instanceof SRINodeNormFailure) { throw err; } else { console.log(err.stack);