Update Appearance.js

Enhance flush method do display a meaningfull error message on ui syncAppearance calls.