@tryghost/mw-error-handler 0.2.3 → 0.2.4
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/mw-error-handler.js +6 -6
- package/package.json +2 -2
package/lib/mw-error-handler.js
CHANGED
|
@@ -9,14 +9,14 @@ const messages = {
|
|
|
9
9
|
pageNotFound: 'Page not found',
|
|
10
10
|
resourceNotFound: 'Resource not found',
|
|
11
11
|
methodNotAcceptableVersionAhead: {
|
|
12
|
-
message: 'Request not
|
|
13
|
-
context: 'Provided client version {acceptVersion} is ahead of current Ghost
|
|
14
|
-
help: '
|
|
12
|
+
message: 'Request could not be served, the endpoint was not found.',
|
|
13
|
+
context: 'Provided client accept-version {acceptVersion} is ahead of current Ghost version {ghostVersion}.',
|
|
14
|
+
help: 'Try upgrading your Ghost install.'
|
|
15
15
|
},
|
|
16
16
|
methodNotAcceptableVersionBehind: {
|
|
17
|
-
message: 'Request not
|
|
18
|
-
context: 'Provided client version {acceptVersion} is
|
|
19
|
-
help: '
|
|
17
|
+
message: 'Request could not be served, the endpoint was not found.',
|
|
18
|
+
context: 'Provided client accept-version {acceptVersion} is behind current Ghost version {ghostVersion}.',
|
|
19
|
+
help: 'Try upgrading your Ghost API client.'
|
|
20
20
|
},
|
|
21
21
|
actions: {
|
|
22
22
|
images: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mw-error-handler",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"repository": "https://github.com/TryGhost/Utils/tree/main/packages/mw-error-handler",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
32
|
"semver": "^7.3.6"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "df4e8b1ac5b62abb1d8882a38a998c306f9df505"
|
|
35
35
|
}
|