serverless / compose

Orchestrate Serverless Framework in monorepos
https://serverless.com/framework/docs/guides/compose
MIT License
111 stars 15 forks source link

Improve formatting of initialization errors #53

Closed mnapoli closed 2 years ago

mnapoli commented 2 years ago

We want to format errors closer to the Serverless Framework formatting.

Current

image image

Target

Example of a Serverless Framework init error:

image

we should follow that same approach:

Here's what the top block could contain for now:

Environment: darwin, node 17.4.0, compose 0.0.8
Docs:        github.com/serverless/compose
Support:     github.com/serverless/compose/issues
pgrzesik commented 2 years ago

The proposed solution is great, however, we also have different error scenarios - the ones that happen as a part of executing a command for a specific service that fails, the example below:

41FD85DD-A84F-4010-B2C0-5F1C38983D41

Do you think we should improve this scenario in some way as well?

mnapoli commented 2 years ago

I think for these errors we're kinda good.

Ideally there shouldn't be an "Error:" prefix (to be consistent with other error messages, and keep the dynamic output short). Maybe that's a detail we can improve?