Improve error on assining output variables.