Skip to content

Commit

Permalink
make better error
Browse files Browse the repository at this point in the history
  • Loading branch information
alextaing committed Oct 24, 2023
1 parent 097a748 commit c23e204
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/studio-ui/src/hooks/useInjectUserStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ function injectStyleIntoIframe(iframeDocument: Document, filepath: string) {
if (!parentDocumentStyletag) {
console.warn(
`${filepath} was not able to be loaded into the Studio Preview. ` +
"If this is a newly added style file, refresh Studio to update. " +
"Note that unsaved changes will not be preserved on page refresh."
"If this style is missing from Studio Preview and is a " +
"newly added style file, refresh Studio to update. Note that " +
"unsaved changes will not be preserved on page refresh."
);
return;
}
Expand Down

0 comments on commit c23e204

Please sign in to comment.