@tryghost/errors 1.2.12 → 1.2.15
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/lib/errors.js +9 -0
- package/package.json +5 -5
package/lib/errors.js
CHANGED
|
@@ -317,6 +317,15 @@ const ghostErrors = {
|
|
|
317
317
|
message: 'The server has encountered an conflict.'
|
|
318
318
|
}, options));
|
|
319
319
|
}
|
|
320
|
+
},
|
|
321
|
+
MigrationError: class MigrationError extends GhostError {
|
|
322
|
+
constructor(options) {
|
|
323
|
+
super(merge({
|
|
324
|
+
errorType: 'MigrationError',
|
|
325
|
+
message: 'An error has occurred applying a database migration.',
|
|
326
|
+
level: 'critical'
|
|
327
|
+
}, options));
|
|
328
|
+
}
|
|
320
329
|
}
|
|
321
330
|
};
|
|
322
331
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/errors",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"repository": "https://github.com/TryGhost/framework/tree/main/packages/errors",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"c8": "7.
|
|
23
|
-
"mocha": "
|
|
22
|
+
"c8": "7.12.0",
|
|
23
|
+
"mocha": "10.0.0",
|
|
24
24
|
"should": "13.2.3",
|
|
25
|
-
"sinon": "
|
|
25
|
+
"sinon": "14.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"utils-copy-error": "^1.0.1",
|
|
30
30
|
"uuid": "^8.3.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cc9195ea06015d9711ed1fa65267ff85c19edb05"
|
|
33
33
|
}
|