network plugin: Improve "Buffer too small" error message.

References: #724