implement error handler for theme config file