make error generic