While this should work fine, we typically test for `error < 0`. It's not too important, but there are a small number of functions in the library that return meaningful positive values that are not errors (whereas errors will always be negative values).