From 17ec2c0ffa97066784aa7ba9713e2c60f9ce9b95 Mon Sep 17 00:00:00 2001 From: Amir Tadrisi Date: Tue, 14 Nov 2023 16:38:37 -0500 Subject: [PATCH] chore: log the type of resource passed to replaceFetchResourceForSegmentSite in case of error --- lms/templates/widgets/segment-io.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/widgets/segment-io.html b/lms/templates/widgets/segment-io.html index bfde404d9bec..e794d82cbf1f 100644 --- a/lms/templates/widgets/segment-io.html +++ b/lms/templates/widgets/segment-io.html @@ -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; } }