Fix duration for error message convenience methods.