]> Kevux Git Server - koopa/commit
Update: partial improvements to error presentation, including passing error_message...
authorKevin Day <thekevinday@gmail.com>
Sat, 3 Feb 2018 21:09:47 +0000 (15:09 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 3 Feb 2018 21:18:44 +0000 (15:18 -0600)
commit2c3dafeedc1178f2a57109b3e86a146d25878823
tree5594e13f275d5cc952fc5c3d7cf72718cb38a776
parent8994317b5f4e05775074a1c943d27fba5af079e9
Update: partial improvements to error presentation, including passing error_message to now reserved ':{error_message}' replacement parameter

Process and pass the error message to the string.
It seems that this was not happening.

There are a few other issues:
- arrays were being passed, increasing complexity (unnecessarily).
- use preg_match() instead of direct string comparisons on postgresql error messages to be consistent.
- ':{failure_reasons} array is no longer neded with this change.

While reviewing and making these changes, I noticed that the entire error message process is a bit inconsistent.
I suspect that I had changed how I was processing errors along the process.
More work needs to be done, but that is being put off to later.
common/base/classes/base_database.php
common/base/classes/base_error_messages_english.php
common/base/classes/base_error_messages_japanese.php
common/standard/classes/standard_index.php
common/standard/paths/u/user_login.php