Create utility routines to generate error messages and declutter the apps.