connorshea added a comment.
Based on how the `SnakValidatorStatementValidator` class seems to work, it seems like you could catch the specific exceptions raised by `lib/packages/wikibase/data-model-serialization/src/Deserializers/StatementDeserializer.php` and return a more specific error message for "invalid statement" in the `validate` method Relatively Easily™ (I'm decent at PHP, but hardly an expert, so I may very well be missing something). That might be something to look into, because the current generic invalid statement message is pretty frustrating. TASK DETAIL https://phabricator.wikimedia.org/T315158 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: connorshea Cc: WMDE-leszek, Addshore, Ollie.Shotton_WMDE, connorshea, Aklapper, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org