diff --git a/doc/Section_errors.html b/doc/Section_errors.html index bd7722e923..4330576f5c 100644 --- a/doc/Section_errors.html +++ b/doc/Section_errors.html @@ -147,13 +147,17 @@ causing the problem.
These are two alphabetic lists of the ERROR and WARNING messages LAMMPS prints out and the reason why. If the explanation here is not sufficient, the documentation for the -offending command may help. Grepping the source files for the text of -the error message and staring at the source code and comments is also -not a bad idea! Note that sometimes the same message can be printed -from multiple places in the code. +offending command may help. +Error and warning messages also list the source file and line number +where the error was generated. For example, this message
-Also note that error messages from user-contributed -packages are not listed here. Is such an +
ERROR: Illegal velocity command (velocity.cpp:78) +
+means that line #78 in the file src/velocity.cpp generated the error. +Looking in the source code may help you figure out what went wrong. +
+Note that error messages from user-contributed +packages are not listed here. If such an error occurs and is not self-explanatory, you'll need to look in the source code or contact the author of the package.
diff --git a/doc/Section_errors.txt b/doc/Section_errors.txt index 0712fb922f..dab3e05cf6 100644 --- a/doc/Section_errors.txt +++ b/doc/Section_errors.txt @@ -144,13 +144,17 @@ As a last resort, you can send an email directly to the These are two alphabetic lists of the "ERROR"_#error and "WARNING"_#warn messages LAMMPS prints out and the reason why. If the explanation here is not sufficient, the documentation for the -offending command may help. Grepping the source files for the text of -the error message and staring at the source code and comments is also -not a bad idea! Note that sometimes the same message can be printed -from multiple places in the code. +offending command may help. +Error and warning messages also list the source file and line number +where the error was generated. For example, this message -Also note that error messages from "user-contributed -packages"_Section_start.html#start_3 are not listed here. Is such an +ERROR: Illegal velocity command (velocity.cpp:78) + +means that line #78 in the file src/velocity.cpp generated the error. +Looking in the source code may help you figure out what went wrong. + +Note that error messages from "user-contributed +packages"_Section_start.html#start_3 are not listed here. If such an error occurs and is not self-explanatory, you'll need to look in the source code or contact the author of the package.