Skip to content

Commit

Permalink
fix more error and help messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Walid Lezzar committed Jul 2, 2020
1 parent ea6e9dd commit d831b6b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion zoe-cli/src/commands/config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import java.nio.file.FileAlreadyExistsException
import java.nio.file.Files
import java.nio.file.StandardCopyOption

class ConfigCommand : CliktCommand(name = "config", help = "Initialize zoe") {
class ConfigCommand : CliktCommand(name = "config", help = "Inspect or initialize zoe config") {
override fun run() {}
}

Expand Down
2 changes: 1 addition & 1 deletion zoe-cli/src/commands/lambda.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import java.net.URL
import java.nio.ByteBuffer
import java.nio.file.Files

class LambdaCommand : CliktCommand(name = "lambda", help = "Manage zoe lambda function") {
class LambdaCommand : CliktCommand(name = "lambda", help = "Manage the AWS Lambda runner") {
companion object {
val ZoeTags = mapOf("service" to "zoe")
const val LambdaInfraStackName = "zoe-infra-stack"
Expand Down
2 changes: 1 addition & 1 deletion zoe-cli/src/commands/topics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class TopicsConsume : CliktCommand(
by argument("topic", help = "Target topic to read (alias or real)").convert { TopicAliasOrRealName(it) }

private val dialect: JsonQueryDialect
by option("--dialect", help = "Json query dialect")
by option("--dialect", help = "Json query dialect to use with `--query` and `--filter`")
.choice(
"jq" to JsonQueryDialect.Jq,
"jmespath" to JsonQueryDialect.Jmespath
Expand Down
2 changes: 1 addition & 1 deletion zoe-service/src/runners/local.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LocalZoeRunner(override val name: String, private val executor: ExecutorSe
Supplier {
FunctionsRegistry
.runCatching { call(function, payload) }
.getOrElse { throw ZoeRunnerException(null, it, name, null) }
.getOrElse { throw ZoeRunnerException("runner '$name' failed", it, name, null) }
},
executor
).await()
Expand Down

0 comments on commit d831b6b

Please sign in to comment.