Update way to pass error message