add generic Error() function

annoying supplying the text all the time