Factored out error output generation from wbtooltip

Change-Id: I02a2898f7a9f5ec7b8c9e5ced38fe0a8ca3ed777
Merge "Factored out error output generation from wbtooltip"