Pulled common error handling to separate tag file.