export the error and warning functions for general use