Change the assert_eq message to be more verbose.

Closes #6221