report better error in fread on bad stream