update lenv_err to be variable length for better error reporting