Changing an assert to an error 

closes #2779