autorest icon indicating copy to clipboard operation
autorest copied to clipboard

Missing information in the error message when readme file has white space issue in suppression section

Open raych1 opened this issue 2 years ago • 0 comments

Before filling a bug

  • [v] have you checked the faq for known issues.
  • [v] have you checked existing issues

Describe the bug In suppression section, the code property miss a space. The error message is as below:

[generator automation-v2]  > You can install the newer version with with npm install -g autorest@latest
06:53:16.463 cmderr 	[generator automation-v2] info    |    Loading AutoRest core      '/home/cloudtest/.autorest/@[email protected]/nodemodules/@autorest/core/dist' (3.9.7)
06:53:16.463 cmderr 	[generator automation-v2] info    |    Installing AutoRest extension '@autorest/go' (4.0.0-preview.55 -> 4.0.0-preview.55)
06:53:16.463 cmderr 	[generator automation-v2] info    |    Installed AutoRest extension '@autorest/go' (4.0.0-preview.55->4.0.0-preview.55)
06:53:16.463 cmderr 	[generator automation-v2] info    |    Installing AutoRest extension '@autorest/modelerfour' (4.26.2 -> 4.26.2)
06:53:16.463 cmderr 	[generator automation-v2] info    |    Installed AutoRest extension '@autorest/modelerfour' (4.26.2->4.26.2)
06:53:16.464 cmderr 	[generator automation-v2] error   |   **TypeError: Cannot read properties of undefined (reading 'toLowerCase')**
06:53:16.464 cmderr 	[generator automation-v2] error   | 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.
06:53:16.464 cmderr 	[generator automation-v2] ##[error]Error running autorest.go

Expected behavior Report the issue in suppression part or at least in readme parsing phase.

This commit fix the whitespace issue in the readme.md

raych1 avatar Oct 13 '23 03:10 raych1