Better exception message in stream loader