Improve allocation error messages

Was missed in previous edit.