better debugging of failed formula loading

Closes #21680.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>