Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix(templates): show actual error messages if template recipe executi…
Browse files Browse the repository at this point in the history
…on fails (closes #1276)
  • Loading branch information
itsaky committed Nov 9, 2023
1 parent 9e27474 commit fdf591e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ class TemplateDetailsFragment :
err?.printStackTrace()
log.error(
"Failed to create project. result=$result, err=${err?.message}")
flashError(string.project_creation_failed)
if (err != null) {
flashError(err.cause?.message ?: err.message)
} else {
flashError(string.project_creation_failed)
}
return@executeAsyncProvideError
}

Expand Down

0 comments on commit fdf591e

Please sign in to comment.