aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2022-02-01 13:08:58 +0000
committerShin'ya Ueoka <ueokande@i-beam.org>2022-02-01 13:08:58 +0000
commit2a119d7f1974bf9924242a598f02fe7b34cb85ae (patch)
tree877ad517af24f93ca2fa15cef8b40752075ae046
parent5bedb2c4dc86342e6786599ee58897e0f47ed703 (diff)
Fix signature for ajv v8.x
-rw-r--r--src/shared/settings/Settings.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/settings/Settings.ts b/src/shared/settings/Settings.ts
index 6c4fa0a..2294c67 100644
--- a/src/shared/settings/Settings.ts
+++ b/src/shared/settings/Settings.ts
@@ -44,7 +44,7 @@ export default class Settings {
if (!valid) {
const message = (validate as any)
.errors!.map((err: Ajv.ErrorObject) => {
- return `'${err.dataPath}' ${err.message}`;
+ return `'${err.instancePath}' ${err.message}`;
})
.join("; ");
throw new TypeError(message);