@defra/lis-hubs-infra-access 0.9.0 → 0.10.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/lis-hubs-infra-access",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Shared hub access and capability resolution for the livestock platform.",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -46,7 +46,14 @@ function createLoginController({
46
46
  resolvedProviderId
47
47
  )
48
48
  } catch (error) {
49
- request.logger?.error?.(error)
49
+ request.logger?.error?.(
50
+ {
51
+ message: error?.message,
52
+ cause: error?.cause?.message ?? error?.cause?.code ?? error?.cause,
53
+ stack: error?.stack
54
+ },
55
+ 'Failed to build OIDC authorization URL'
56
+ )
50
57
 
51
58
  return h
52
59
  .response(