From a85efa0e40fd00d4f7778a5e2be59a8ab6ea3012 Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Fri, 19 Apr 2002 09:54:50 +0000 Subject: [PATCH] show an alert if we fail to get a document uri (bug 126258) r=cmanske, sr=kin --- editor/ui/composer/content/ComposerCommands.js | 3 +++ 1 file changed, 3 insertions(+) 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);