give the possibility to pass an error message to the user