This module is used to check Erlang code for illegal syntax and other bugs. It also warns against coding practices that are not recommended.
The errors detected include:
The warnings detected include:
Some of the warnings are optional, and can be turned on by specifying the appropriate option, described below.
The functions in this module are invoked automatically by the Erlang compiler. There is no reason to invoke these functions separately unless you have written your own Erlang compiler.
Takes an
Tests if
Checks all the forms in a module for errors. It returns:
There are no errors in the module.
There are errors in the module.
As this module is of interest only to the maintainers of the
compiler, and to avoid the same description in two places, the
elements of
[{FileName2 ,[ErrorInfo ]}]
The errors and warnings are listed in the order in which they are encountered in the forms. The errors from one file can therefore be split into different entries in the list of errors.
{ErrorLine, Module, ErrorDescriptor}
A string describing the error is obtained with the following call:
Module:format_error(ErrorDescriptor)