Permalink
Browse files

dont exit on first error when building src xml

  • Loading branch information...
1 parent c9d15f3 commit 9fb3919d9dff3b9ce14dfba771cba7b976e2b5d5 @daleharvey committed Jul 12, 2010
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/erldocs.erl
View
@@ -84,10 +84,15 @@ ensure_docsrc(AppDir) ->
end.
gen_docsrc(AppDir) ->
- [ begin
- ok = docb_gen:module(File),
- AppDir ++ "/doc/src/" ++ bname(File, ".erl") ++ ".xml"
- end || File <- filelib:wildcard(AppDir ++ "/src/*.erl") ].
+
+ Files = [ try ok = docb_gen:module(File),
+ AppDir ++ "/doc/src/" ++ bname(File, ".erl") ++ ".xml"
+ catch
+ _:_ -> ignore
+ end || File <- filelib:wildcard(AppDir ++ "/src/*.erl") ],
+
+ [ File || File <- Files, File =/= ignore ].
+
%% @doc run a function with the cwd set, ensuring the cwd is reset once
%% finished (some dumb functions require to be ran from a particular dir)

0 comments on commit 9fb3919

Please sign in to comment.