Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77dca7a + 2099f54 commit 74e4da5Copy full SHA for 74e4da5
packages/grpc-js/src/client.ts
@@ -110,7 +110,7 @@ export type ClientOptions = Partial<ChannelOptions> & {
110
};
111
112
function getErrorStackString(error: Error): string {
113
- return error.stack!.split('\n').slice(1).join('\n');
+ return error.stack?.split('\n').slice(1).join('\n') || 'no stack trace available';
114
}
115
116
/**
0 commit comments