ng-ipa-library 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1342,10 +1342,10 @@ class ErrorInterceptor {
1342
1342
  };
1343
1343
  switch (response.statusCode) {
1344
1344
  case 500:
1345
- const message = response?.innerException + ' ' + response?.stackTrace;
1346
- const toastr = this.toastrService.error(message, response.message, toastrConfig);
1345
+ const msg = response.innerException + ' ' + (response.stackTrace ?? '');
1346
+ const toastr = this.toastrService.error(msg, response.message, toastrConfig);
1347
1347
  toastr.onShown.subscribe(() => {
1348
- this.addCopyButton(message);
1348
+ this.addCopyButton(response.message + '\n' + msg);
1349
1349
  });
1350
1350
  break;
1351
1351
  default: