Diagnostics

Its about time I actually get diagnostics put into master.
hmm... okay. I didnt bother checking in this case because the failure of that assertion means programmer error.