add trait to error type

Add a trait for the error type