Exporting also the error