tomdyson / wagalytics

A Google Analytics dashboard in your Wagtail admin
MIT License
217 stars 42 forks source link

Error reporting is opaque. #24

Open coredumperror opened 6 years ago

coredumperror commented 6 years ago

I randomly started getting an alert on every Page edit form a few days ago, and was totally baffled as to where it was coming from. It said "Something broke: User does not have sufficient permissions for this profile", and nothing else.

It took me quite a big of digging to discover that the error was coming from Wagalytics. I'd had my View ID set wrong, which meant that my JSON key didn't apply to the account that the editor form code was trying to read from.

I'd like to suggest that the error message be clear that it is coming from Wagalytics.