Skip to content

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 AndroidIDEOfficial#1276)
  • Loading branch information
itsaky authored and Ruan625Br committed Sep 14, 2023
1 parent 37ad870 commit a64a339
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 a64a339

Please sign in to comment.