use "error" only when it's defined.