Detailed error message for "insufficient privileges" in dev mode

A development-only option would be very useful to help devs zero in on the reason the “insufficient privileges” error is occurring.

It would include things like:
Role X cannot access UDF Y
or
Role X cannot access Collection Z
etc.