normalizeError