Move to using std::error

Oops!