Explorar el Código

report missing bytes

Gil Pedersen hace 13 años
padre
commit
6b2bcf5a80
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/reader.js

+ 1 - 1
lib/reader.js

@@ -247,7 +247,7 @@ function HlsStreamReader(src, options) {
 
           // FIXME: is this required? or already handled by http-get?
           if (!err && (totalBytes !== meta.size))
-            err = new Error('Invalid returned stream length');
+            err = new Error('Invalid returned stream length (req='+meta.size+', ret='+totalBytes+')');
 
           cb(err, totalBytes);
         }