Skip to content

Commit

Permalink
pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Sep 8, 2024
1 parent db5ce0c commit 1cd3ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DeleteBatchCommand(cliConfig: CliConfig) extends Command[Batch](cliConfig)

val result = batchRestApi.deleteBatch(batchId)

info(JsonUtils.toJson(result))
info(JsonUtils.toPrettyJson(result))

if (!result.isSuccess) {
val batch = batchRestApi.getBatchById(batchId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SubmitBatchCommand(cliConfig: CliConfig) extends Command[Batch](cliConfig)
batch = logBatchCommand.doRun()

if (BatchUtils.isTerminalState(batch.getState) && !BatchUtils.isFinishedState(batch.getState)) {
error(s"Batch ${batch.getId} failed: ${JsonUtils.toJson(batch)}")
error(s"Batch ${batch.getId} failed:\n${${Render.renderBatchInfo(batch)}}")
throw ControlCliException(1)
}

Expand Down

0 comments on commit 1cd3ff1

Please sign in to comment.