File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
hooks/open-telemetry/src/lib
providers/ofrep-web/src/lib Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- import type { FlagMetadata , Logger } from '@openfeature/server-sdk' ;
1+ import { FlagMetadata , Logger } from '@openfeature/server-sdk' ;
22import { Attributes } from '@opentelemetry/api' ;
33
44export type AttributeMapper = ( flagMetadata : FlagMetadata ) => Attributes ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 ErrorCode ,
1515 EvaluationContext ,
1616 FlagValue ,
17+ GeneralError ,
1718 Hook ,
1819 JsonValue ,
1920 Logger ,
@@ -197,7 +198,7 @@ export class OFREPWebProvider implements Provider {
197198 }
198199
199200 if ( response . httpStatus !== 200 ) {
200- throw new Error ( `Failed OFREP bulk evaluation request, status: ${ response . httpStatus } ` ) ;
201+ throw new GeneralError ( `Failed OFREP bulk evaluation request, status: ${ response . httpStatus } ` ) ;
201202 }
202203
203204 const bulkSuccessResp = response . value ;
You can’t perform that action at this time.
0 commit comments