diff --git a/editor/ui/composer/content/ComposerCommands.js b/editor/ui/composer/content/ComposerCommands.js index ecc8cf1df2a..aadc7e40544 100644 --- a/editor/ui/composer/content/ComposerCommands.js +++ b/editor/ui/composer/content/ComposerCommands.js @@ -1515,7 +1515,10 @@ function Publish(publishData) gPublishData.docURI = CreateURIFromPublishData(publishData, true); if (!gPublishData.docURI) + { + AlertWithTitle(GetString("Publish"), GetString("PublishFailed")); return false; + } if (gPublishData.publishOtherFiles) gPublishData.otherFilesURI = CreateURIFromPublishData(publishData, false);