@medplum/fhir-router 2.0.19 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14130,7 +14130,12 @@ class FhirRouter {
14130
14130
  }
14131
14131
  const { handler, params } = result;
14132
14132
  req.params = params;
14133
- return handler(req, repo, this);
14133
+ try {
14134
+ return await handler(req, repo, this);
14135
+ }
14136
+ catch (err) {
14137
+ return [normalizeOperationOutcome(err)];
14138
+ }
14134
14139
  }
14135
14140
  }
14136
14141