diff options
author | Richard Carlsson <[email protected]> | 2011-08-02 13:11:23 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-08-04 11:27:00 +0200 |
commit | 403d462964b773516a99726129ea8dcdcc9a96f5 (patch) | |
tree | 2a27d637402666c82236878b7a077a9183578936 /lib/edoc/src/edoc.erl | |
parent | 07936436b8a8b18b80451a09e040283ebecbd43b (diff) | |
download | otp-403d462964b773516a99726129ea8dcdcc9a96f5.tar.gz otp-403d462964b773516a99726129ea8dcdcc9a96f5.tar.bz2 otp-403d462964b773516a99726129ea8dcdcc9a96f5.zip |
synchronized with edoc development version
Diffstat (limited to 'lib/edoc/src/edoc.erl')
-rw-r--r-- | lib/edoc/src/edoc.erl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/edoc/src/edoc.erl b/lib/edoc/src/edoc.erl index 360f2dbc9e..6ea57ac713 100644 --- a/lib/edoc/src/edoc.erl +++ b/lib/edoc/src/edoc.erl @@ -179,8 +179,8 @@ application(App, Options) when is_atom(App) -> Dir when is_list(Dir) -> application(App, Dir, Options); _ -> - report("cannot find application directory for '~s'.", - [App]), + edoc_report:report("cannot find application directory for '~s'.", + [App]), exit(error) end. @@ -663,8 +663,8 @@ read_source(Name, Opts0) -> check_forms(Forms, Name), Forms; {error, R} -> - error({"error reading file '~s'.", - [edoc_lib:filename(Name)]}), + edoc_report:error({"error reading file '~s'.", + [edoc_lib:filename(Name)]}), exit({error, R}) end. @@ -688,11 +688,10 @@ check_forms(Fs, Name) -> error_marker -> case erl_syntax:error_marker_info(F) of {L, M, D} -> - error(L, Name, {format_error, M, D}); - + edoc_report:error(L, Name, {format_error, M, D}); Other -> - report(Name, "unknown error in " - "source code: ~w.", [Other]) + edoc_report:report(Name, "unknown error in " + "source code: ~w.", [Other]) end, exit(error); _ -> |