Skip to content

Commit

Permalink
Update GenerateSiteCommand.kt
Browse files Browse the repository at this point in the history
Only print error message, not full stack trace
  • Loading branch information
pietermees authored Aug 18, 2023
1 parent 5539bff commit 368f275
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ class GenerateSiteCommand : Subcommand(
createStructurizrWorkspace(workspaceFileInRepo)
true
} catch (e: Exception) {
println("Bad Branch $branch")
e.printStackTrace()
errorMessage = e.message ?: "Unknown error"
println("Bad Branch $branch: $errorMessage")
false
}
}
Expand Down

0 comments on commit 368f275

Please sign in to comment.