fixed my wrong fix to error msg setter

changed signature to return void.