You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error reporting in the PSAT CLI to provide more detailed and helpful information when errors occur.
Motivation:
The current error reporting for the PSAT CLI is limited and lacks crucial details for efficient debugging. Users often struggle to understand the root cause of errors, which hampers troubleshooting and resolution. Providing more detailed error reports would significantly improve the user experience and make it easier for both users and the PSAT team to diagnose and fix issues.
User Story:
As a PSAT CLI user, I want to receive detailed error reports that include system information, command context, and relevant technical details so that I can quickly troubleshoot issues and determine the appropriate course of action.
Acceptance Criteria:
When an error occurs, the CLI output should include the following system information:
PSAT CLI Version
Node.js Version
NPM Version
Operating System
Puppeteer Version
The error report should provide context about the command execution:
The specific command that was executed
The target URL or sitemap being analyzed
CLI options used
Timestamp of the error
If applicable, technical details related to the error should be included:
Network request or response errors list
Stack trace
Error messages should be user-friendly.
Suggested actions or troubleshooting steps should be provided based on the error type.
Additional Information:
An example of an enhanced error report:
PSAT CLI Error Report
Timestamp: 2024-08-23 14:30:15 UTC
Command: psat --url https://www.example.com
Target URL: https://www.example.com
CLI Options: -u https://www.example.com
System Information:
- PSAT Version: 0.10.0
- Node Version: v18.20.3
- NPM Version: v10.7.0
- OS: Pop!_OS 22.04 LTS
- Puppeteer Version: 22.14.0
Error Message: Failed to fetch the URL. Network error.
Stack Trace:
... (Detailed stack trace here) ...
Suggested Actions:
- Check your internet connection.
- Verify the URL is valid.
- If the issue persists, please report this error.
The text was updated successfully, but these errors were encountered:
Feature Request
Description:
Improve error reporting in the PSAT CLI to provide more detailed and helpful information when errors occur.
Motivation:
The current error reporting for the PSAT CLI is limited and lacks crucial details for efficient debugging. Users often struggle to understand the root cause of errors, which hampers troubleshooting and resolution. Providing more detailed error reports would significantly improve the user experience and make it easier for both users and the PSAT team to diagnose and fix issues.
User Story:
As a PSAT CLI user, I want to receive detailed error reports that include system information, command context, and relevant technical details so that I can quickly troubleshoot issues and determine the appropriate course of action.
Acceptance Criteria:
Additional Information:
An example of an enhanced error report:
The text was updated successfully, but these errors were encountered: