Skip to content

Commit 3236e59

Browse files
committed
fix: update error message for missing urlEndpoint in Image and Video components
1 parent 2a51e25 commit 3236e59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const Image = (props: IKImageProps) => {
6969
// Fail fast in development if the mandatory urlEndpoint is missing.
7070
if (!urlEndpoint || urlEndpoint.trim() === "") {
7171
if (process.env.NODE_ENV !== "production") {
72-
console.error("urlEndpoint is neither provided in this component nor in the ImageKitContext.");
72+
console.error("urlEndpoint is neither provided in this component nor in any parent ImageKitProvider.");
7373
}
7474
return null;
7575
}

src/components/Video.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const Video = (props: IKVideoProps) => {
3434
// Fail fast in development if the mandatory urlEndpoint is missing.
3535
if (!urlEndpoint || urlEndpoint.trim() === "") {
3636
if (process.env.NODE_ENV !== "production") {
37-
console.error("urlEndpoint is neither provided in this component nor in the ImageKitContext.");
37+
console.error("urlEndpoint is neither provided in this component nor in any parent ImageKitProvider.");
3838
}
3939
return null;
4040
}

0 commit comments

Comments
 (0)