Throwing an error is probably not a good solution as exceptions are not caught everywhere.
I would prefer just pushing some data in the log
or in a notification area that could be used for later debugging if needed.