revspec: Use more idiomatic error value test