Correctly updates error message now.