Skip to content

Commit

Permalink
Merge pull request #807 from adobecom/dc-hosted-error-detail
Browse files Browse the repository at this point in the history
DCXY-25692 log cause.message from wrapped exception, if present
  • Loading branch information
Blainegunn authored Sep 17, 2024
2 parents 55154ce + fca00e9 commit e14e801
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions acrobat/blocks/dc-converter-widget/dc-converter-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,9 @@ export default async function init(element) {
dropZone.innerHTML = '<img src="/acrobat/img/icons/error.svg"><p>We apologize for the inconvenience. We are working hard to make the service available. Please check back shortly.</p>';
document.querySelector('div[class*="DropZoneFooter__dropzoneFooter"]').innerHTML = '';
}
const { message, name, type } = err.detail?.wrappedException || {};
const info = `DC Widget failed. type=${type} name=${name} message=${message}`;
const { cause, message, name, type } = err.detail?.wrappedException || {};
// eslint-disable-next-line prefer-template
const info = `DC Widget failed. type=${type} name=${name} message=${message}` + (cause ? ` cause.message=${cause.message}` : '');
window.lana?.log(info, lanaOptions);
});
}

0 comments on commit e14e801

Please sign in to comment.