You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2012/10/16 04:08:56 UTC

[2/3] docs commit: Show an error when jodoc fails in navigation_menu.rb

Show an error when jodoc fails in navigation_menu.rb


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/e6964996
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/e6964996
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/e6964996

Branch: refs/heads/master
Commit: e696499627aa3c7ce6f1a9c3e0d62383483edec4
Parents: 665b257
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Oct 15 22:05:54 2012 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Oct 15 22:08:31 2012 -0400

----------------------------------------------------------------------
 lib/cordova/navigation_menu.rb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e6964996/lib/cordova/navigation_menu.rb
----------------------------------------------------------------------
diff --git a/lib/cordova/navigation_menu.rb b/lib/cordova/navigation_menu.rb
index 59061b7..59d7982 100644
--- a/lib/cordova/navigation_menu.rb
+++ b/lib/cordova/navigation_menu.rb
@@ -28,6 +28,9 @@ class NavigationMenu
     @sections = []
 
     filename = Dir.glob(File.join tmp_directory, '**', 'index.md.html')[0]
+    if filename == nil
+      abort('index.md.html was not generated in ' + tmp_directory)
+    end
     doc     = Nokogiri::HTML(File.read(filename))
 
     h1_set   = doc.css('#home > h1')