Skip to content

CLI #94 — Handle non-JSON API error responses gracefully #489

@Tinna23

Description

@Tinna23

Task

If the API returns a non-JSON body, print a clear error message instead of crashing on JSON parse.

Files to update

packages/cli/src/lib/client.ts
packages/cli/src/lib/errors.ts

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaigncliCLI package (packages/cli/)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions