@openneuro/server 4.37.0-alpha.1 → 4.37.0-alpha.2

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": "@openneuro/server",
3
- "version": "4.37.0-alpha.1",
3
+ "version": "4.37.0-alpha.2",
4
4
  "description": "Core service for the OpenNeuro platform.",
5
5
  "license": "MIT",
6
6
  "main": "src/server.js",
@@ -21,7 +21,7 @@
21
21
  "@elastic/elasticsearch": "8.13.1",
22
22
  "@graphql-tools/schema": "^10.0.0",
23
23
  "@keyv/redis": "^4.5.0",
24
- "@openneuro/search": "^4.37.0-alpha.1",
24
+ "@openneuro/search": "^4.37.0-alpha.2",
25
25
  "@sentry/node": "^8.25.0",
26
26
  "@sentry/profiling-node": "^8.25.0",
27
27
  "base64url": "^3.0.0",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "0ecf2dc232cfec35e600ac2284764c9762342e52"
91
+ "gitHead": "f424a56ad584dd29969898214e2de23060aea6a8"
92
92
  }
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * See resolvers for interaction with other data sources.
5
5
  */
6
+ import * as Sentry from "@sentry/node"
6
7
  import request from "superagent"
7
8
  import requestNode from "request"
8
9
  import objectHash from "object-hash"
@@ -72,8 +73,9 @@ export const createDataset = async (
72
73
  await notifications.snapshotReminder(datasetId)
73
74
  return ds
74
75
  } catch (e) {
76
+ Sentry.captureException(e)
75
77
  // eslint-disable-next-line
76
- console.error(`Failed to create ${datasetId}`)
78
+ console.error(`Failed to create ${datasetId}: ${e}`)
77
79
  throw e
78
80
  }
79
81
  }