use error instead of require
This commit is contained in:
parent
454ba7bf7c
commit
4e53d8462f
|
@ -174,10 +174,10 @@ internal class RustCrossSigningService @Inject constructor(
|
||||||
if (verified) {
|
if (verified) {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
require(false) { "This device [$deviceId] is not known, or not yours" }
|
error("This device [$deviceId] is not known, or not yours")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
require(false) { "This device [$deviceId] is not known" }
|
error("This device [$deviceId] is not known")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue