#5714 - trigger_error for MISSING_OPTION always logs the specific line it is executed in errorlog.php

  • By
  • Added
  • 6 views
Identifier #5714
Issue type Trivial issue (does not break functionality)
Title trigger_error for MISSING_OPTION always logs the specific line it is executed in errorlog.php
Status Completed
Handling member PDStig
Version 11 alpha2
Addon errorlog
Description The following line in sources/config.php

trigger_error(do_lang('MISSING_OPTION', escape_html($name)), E_USER_NOTICE);

...will always log its own file / line number in errorlog.php regardless what triggered it / the function. Stack traces will contain the proper traceback, but for debugging purposes we should be logging exactly where the option itself was referenced in the errorlog.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated