add inline errors to gadgets