Skip to content

Commit

Permalink
Core: improve some error messages (#12782)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored Feb 18, 2025
1 parent 49d6656 commit b1d3f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function Renderer(options) {
this.handlers = {};
this.id = id;
this.renderNow = renderNow;
this.adUnitCode = adUnitCode;

// a renderer may push to the command queue to delay rendering until the
// render function is loaded by loadExternalScript, at which point the the command
Expand Down Expand Up @@ -101,7 +102,7 @@ Renderer.prototype.process = function() {
try {
this.cmd.shift().call();
} catch (error) {
logError('Error processing Renderer command: ', error);
logError(`Error processing Renderer command on ad unit '${this.adUnitCode}':`, error);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/bidderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function newBidder(spec) {
}
adapterManager.callBidderError(spec.code, error, bidderRequest)
events.emit(EVENTS.BIDDER_ERROR, { error, bidderRequest });
logError(`Server call for ${spec.code} failed: ${errorMessage} ${error.status}. Continuing without bids.`);
logError(`Server call for ${spec.code} failed: ${errorMessage} ${error.status}. Continuing without bids.`, {bidRequests: validBidRequests});
},
onBid: (bid) => {
const bidRequest = bidRequestMap[bid.requestId];
Expand Down

0 comments on commit b1d3f71

Please sign in to comment.