1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Modify commands to report errors to the IDEA plug-in.

This commit is contained in:
Cedric Beust 2016-03-16 01:26:49 +04:00
parent 806ca59f97
commit ce435adf25
7 changed files with 68 additions and 33 deletions

View file

@ -17,7 +17,7 @@ interface ICommand {
*/
fun run(sender: ICommandSender, received: JsonObject)
fun toCommandData(data: String) = CommandData(name, data)
fun toCommandData(data: String, error: String? = null) = CommandData(name, data, error)
}
/**

View file

@ -1,6 +1,5 @@
package com.beust.kobalt.internal.remote
import com.beust.kobalt.misc.log
import com.google.gson.Gson
import com.google.gson.JsonObject