cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/3] docs commit: Show an error when jodoc fails in navigation_menu.rb
Date Tue, 16 Oct 2012 02:08:56 GMT
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 <agrieve@chromium.org>
Authored: Mon Oct 15 22:05:54 2012 -0400
Committer: Andrew Grieve <agrieve@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')


Mime
View raw message