setpath now returns an error when no parameters/too many parameters are supplied.