Skip to content

Commit

Permalink
Improve error msg (#4460)
Browse files Browse the repository at this point in the history
* Autorest completed with error better message

* Better
  • Loading branch information
timotheeguerin authored Mar 10, 2022
1 parent 7910908 commit 46e690a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@autorest/core",
"comment": "Add helper error message on failure",
"type": "patch"
}
],
"packageName": "@autorest/core",
"email": "tiguerin@microsoft.com"
}
5 changes: 5 additions & 0 deletions packages/extensions/core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@ async function main() {
if (e !== false) {
logger.log({ level: "error", message: `!${e}` });
}
logger.log({
level: "error",
message:
"Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.",
});
} finally {
try {
logger.debug("Shutting Down.");
Expand Down

0 comments on commit 46e690a

Please sign in to comment.