Skip to content

Commit aebae4a

Browse files
ovitrifclaude
andcommitted
fix: add error message to requireNotNull
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 98b9fe1 commit aebae4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/debug/java/to/bitkit/dev/DevToolsProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DevToolsProvider : ContentProvider() {
2727
}
2828

2929
override fun call(method: String, arg: String?, extras: Bundle?): Bundle = runCatching {
30-
val command = requireNotNull(DevCommand.parse(method, arg))
30+
val command = requireNotNull(DevCommand.parse(method, arg)) { "Unknown command: '$method'" }
3131
ServiceQueue.LDK.blocking { command.execute(deps) }
3232
}.getOrElse {
3333
DevResult.Error(it.message)

0 commit comments

Comments
 (0)