Skip to content

Commit

Permalink
Fixed: Exception Handling in Evaluation (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinha610 authored Jul 25, 2024
1 parent 455e13e commit ab978ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/kotlin/com/featurevisor/sdk/Instance+Evaluation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -640,14 +640,13 @@ fun FeaturevisorInstance.evaluateVariable(
logger?.debug("using default value", evaluation.toDictionary())
return evaluation
}
}catch (e: Exception){
} catch (e: Exception){
evaluation = Evaluation(
featureKey = featureKey,
reason = ERROR,
error(e)
)

this.logger?.error("error", evaluation.toDictionary())
this.logger?.error(message = e.message.orEmpty(), details = evaluation.toDictionary())

return evaluation
}
Expand Down

0 comments on commit ab978ba

Please sign in to comment.