Skip to content

GraphError should extend Error #248

@OlivierCuyp

Description

@OlivierCuyp

Feature Request
Problem
Using this library in NodeJS Backend, most logger detect Error objects and parse them accordingly.
In addition, GraphError not being extended from Error doesn't have a stack trace.
GraphError is not parse correctly by our logger (pinoJS) and we don't have any stack trace.
Solution
Extend GraphError from base JS Error.
I believe it should be done here:

 msgraph-sdk-javascript/src/GraphError.ts Line 20 in 7529db8 export class GraphError { 

AB#5832

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions