perhaps pass the whole error?