Open eozd opened 4 years ago
A related problem (that perhaps merits a separate issue) is that often times warnings are used instead of errors. Very often the warning condition clearly indicates a state where the code will produce an error somewhere down the line. When this is true, it is better to fail immediately with an error.
Relating to Eshref's comment on noting the error IDs, this can be integrated into chapter 1.5 of the developer's manual.
Feature Description
Most of the current warnings emitted by PsPM do not have an indicative error ID (not the messages). The most commonly used ID is
ID:invalid_input
, i.e.warning('ID:invalid_input', message)
. We can start using indicative error IDs to make error checking and debugging easier (and maybe note all of the possible error IDs used somewhere).