Improved the error message for the tensor from and to args.
Authored by: bugman 2007-11-29
Parent: [r4133]
Child: [r4135]