Skip to content

Commit

Permalink
chore: log the type of resource passed to replaceFetchResourceForSegm…
Browse files Browse the repository at this point in the history
…entSite in case of error
  • Loading branch information
amirtds committed Nov 14, 2023
1 parent e98d4ab commit 17ec2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/templates/widgets/segment-io.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
});
} else {
// If it's neither a string nor a Request object, log an error or handle as needed
console.error('replaceFetchResourceForSegmentSite was called with an unexpected argument type');
console.error('replaceFetchResourceForSegmentSite was called with an unexpected argument type:', typeof resource, resource);
return resource;
}
}
Expand Down

0 comments on commit 17ec2c0

Please sign in to comment.