aboutsummaryrefslogtreecommitdiff
path: root/src/serverConfig.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-22 22:30:54 +0100
committerTom Harley2018-04-22 22:31:23 +0100
commit1b2fe66acf4041728dcb772ee9638b6b79f34d1a (patch)
treeecb03f6551e35336f5a654f3b3257435cbadfb6d /src/serverConfig.ts
parentEdit file uploads to use raw data instead of forms (diff)
parentfixxed tests (diff)
downloadmedicine-1b2fe66acf4041728dcb772ee9638b6b79f34d1a.tar.gz
medicine-1b2fe66acf4041728dcb772ee9638b6b79f34d1a.zip

Merge branch ‘trh/gets’ of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/project-code into trh/gets

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}`);