aboutsummaryrefslogtreecommitdiff
path: root/src/serverConfig.ts
diff options
context:
space:
mode:
authorjw2552018-04-22 17:38:11 +0100
committerjw2552018-04-22 17:38:11 +0100
commitc050e9e45ed64cfde0bb90f00cd4a4b13374a95f (patch)
tree21ff8c16abdea42b05c89699065945328a2f75f6 /src/serverConfig.ts
parentautocreating logs folder on startup (diff)
downloadmedicine-c050e9e45ed64cfde0bb90f00cd4a4b13374a95f.tar.gz
medicine-c050e9e45ed64cfde0bb90f00cd4a4b13374a95f.zip

fixing tests

Diffstat (limited to 'src/serverConfig.ts')
-rw-r--r--src/serverConfig.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serverConfig.ts b/src/serverConfig.ts
index 136995a..5d2575a 100644
--- a/src/serverConfig.ts
+++ b/src/serverConfig.ts
@@ -82,7 +82,7 @@ export class Property {
}
public set value(value: Value) {
- if (!this.readOnly) {
+ if (this.readOnly) {
throw new Error('this property is read-only');
} else if (!types[this.type](value)) {
throw new Error(`value ${value} is not of type ${this.type}`);