Skip to content

Commit

Permalink
chore: log warning instead of error for replaceFetchResourceForSegmen…
Browse files Browse the repository at this point in the history
…tSite
  • Loading branch information
amirtds committed Nov 14, 2023
1 parent 17ec2c0 commit e5071ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/templates/widgets/segment-io.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e5071ec

Please sign in to comment.