From e5071ecb0f580b974b8f5ef6822dff84fda32574 Mon Sep 17 00:00:00 2001 From: Amir Tadrisi Date: Tue, 14 Nov 2023 16:39:24 -0500 Subject: [PATCH] chore: log warning instead of error for replaceFetchResourceForSegmentSite --- lms/templates/widgets/segment-io.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/templates/widgets/segment-io.html b/lms/templates/widgets/segment-io.html index e794d82cbf1f..ed3f549bfb7d 100644 --- a/lms/templates/widgets/segment-io.html +++ b/lms/templates/widgets/segment-io.html @@ -38,8 +38,8 @@ signal: resource.signal }); } 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:', typeof resource, resource); + // If it's neither a string nor a Request object, log a warning or handle as needed + console.warn('replaceFetchResourceForSegmentSite was called with an unexpected argument type:', typeof resource, resource); return resource; } }