Skip to content

Commit 46801b1

Browse files
author
Robert Winkler
committed
Fix failing test
1 parent 8129e58 commit 46801b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlin-wot/src/main/kotlin/DefaultWot.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DefaultWot(private val servient: Servient) : Wot {
4747
return if (servient.addThing(exposedThing)) {
4848
exposedThing
4949
} else {
50-
exposedThing
50+
throw WotException("Thing already exists: " + thingDescription.id)
5151
}
5252
}
5353

0 commit comments

Comments
 (0)