Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing Error Message if the target server is not running #5

Open
trasa opened this issue Jan 31, 2024 · 0 comments
Open

Confusing Error Message if the target server is not running #5

trasa opened this issue Jan 31, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@trasa
Copy link
Contributor

trasa commented Jan 31, 2024

If you run putter vs. your node project (or anything really) and the project isn't running, the error returned is not very clear as to why things failed.

$  node putter run ../digipen/CS261/Labs/3_CS261_MongoLab_Materials/CS261_MongoLab_Postman.json
processing ../digipen/CS261/Labs/3_CS261_MongoLab_Materials/CS261_MongoLab_Postman.json
Loaded file CS261 Mongo Lab
Loading Variables...
Variables processed
Folder: Post a score for a game
	Item: Adding a new player's score for new game succeeds...POST request to http://localhost:13200/scoresLab/games/game11152/scores/player11152 failed: AggregateError

Instead, try and catch that and return something useful like "are you sure this is running?"

@trasa trasa added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant