aboutsummaryrefslogtreecommitdiff
path: root/src/serverConfig.ts
diff options
context:
space:
mode:
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}`);