change exception to error