change error structure