Skip to content

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

@trasa

Description

@trasa

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?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions