• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / mongodb-mcp-server / 14652027781

24 Apr 2025 09:27PM UTC coverage: 85.897%. First build
14652027781

Pull #115

github

blva
Merge remote-tracking branch 'origin/main' into telemetry-data
Pull Request #115: chore: add server events

132 of 203 branches covered (65.02%)

Branch coverage included in aggregate %.

13 of 17 new or added lines in 1 file covered. (76.47%)

739 of 811 relevant lines covered (91.12%)

46.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/common/atlas/apiClientError.ts
1
export class ApiClientError extends Error {
31✔
2
    response?: Response;
3

4
    constructor(message: string, response: Response | undefined = undefined) {
×
5
        super(message);
21✔
6
        this.name = "ApiClientError";
21✔
7
        this.response = response;
21✔
8
    }
9

10
    static async fromResponse(
11
        response: Response,
12
        message: string = `error calling Atlas API`
21✔
13
    ): Promise<ApiClientError> {
14
        try {
21✔
15
            const text = await response.text();
21✔
16
            return new ApiClientError(`${message}: [${response.status} ${response.statusText}] ${text}`, response);
21✔
17
        } catch {
18
            return new ApiClientError(`${message}: ${response.status} ${response.statusText}`, response);
×
19
        }
20
    }
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc