fix: Show error messages on fatal failures #32 (#34)

* fix: Show error messages on fatal failures #32

* test: Add E2E test

* test: fix E2E scripts

* test: fix E2E scripts

* fix: Race condition in concurrent analyzer

* fix: update formatting to ensure docs URL is clickable

Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com>

* fix: E2E test

---------

Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com>
Co-authored-by: Sahil Bansal <bansalsahil315@gmail.com>
This commit is contained in:
Abhisek Datta
2025-05-17 21:54:47 +05:30
committed by GitHub
co-authored by Sahil Bansal
parent b85f77cfbc
commit 4031219375
12 changed files with 215 additions and 49 deletions
+3
View File
@@ -0,0 +1,3 @@
# Development
- [User Interface](./ui.md)
+29
View File
@@ -0,0 +1,29 @@
# User Interface
PMG is an interactive tool. We support multiple interactivity modes such as `silent`, `verbose` etc. to meet different developer experience needs. As such, we need to standardize the UI, UX and interactive messaging guidance for developers.
## Messaging
Two types of messages to users are supported:
1. UI messages
2. Logs
### UI messages
UI messages are displayed in the user interface, currently in the terminal. Following types of messages are supported:
1. **Status updates** - Meant for showing the stage or status of the workflow.
2. **Error messages** - Meant for showing fatal error messages
| Type | Mode | Show? |
| ------ | ------- | ----- |
| Status | Silent | No |
| Status | Verbose | Yes |
| Error | Silent | Yes |
| Error | Verbose | Yes |
### Logs
Logs are by default for inspection and debugging purposes. They are not shown by default but can be configured through verbosity levels or logging to files. Consider logs as something meant for use only when there is an unexpected behavior.