I think it would be marginally clearer to have error include the absolute value.