mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-25 07:27:19 -05:00
Limit response data in error messages to 100 characters
This commit is contained in:
parent
1e75674e08
commit
7afc241190
|
|
@ -45,6 +45,7 @@ export class ErrorResponse<T = unknown> extends Error {
|
|||
' from ' + response.url + ' (' + response.status + ' ' + response.statusText + ')\n' +
|
||||
' ' + util.inspect(this.data ? this.data : this.body, {
|
||||
compact: true,
|
||||
maxStringLength: 100,
|
||||
}).replace(/\n/g, '\n ') +
|
||||
(lines.length ? '\n' + lines.join('\n') : ''),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user