Permalink
Browse files

minor bugs

  • Loading branch information...
1 parent 50bf536 commit bd56e2a6730482c3e460cea940939cf3ca225352 Gabriel Llamas committed Aug 17, 2012
Showing with 8 additions and 8 deletions.
  1. +1 −1 build/buffered-reader.js
  2. +7 −7 src/buffered-reader.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -14,19 +14,19 @@ var FS = require ("fs");
var Error = require ("errno-codes");
-Error.create ("INVALID_BUFFER_SIZE", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "INVALID_BUFFER_SIZE",
"The buffer size must be greater than 0.");
-Error.create ("INVALID_START_OFFSET", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "INVALID_START_OFFSET",
"The start offset must be greater than or equals to 0.");
-Error.create ("INVALID_END_OFFSET", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "INVALID_END_OFFSET",
"The end offset must be greater than or equals to 0.");
-Error.create ("INVALID_RANGE_OFFSET", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "INVALID_RANGE_OFFSET",
"The end offset must be greater than or equals to the start offset.");
-Error.create ("INVALID_BYTES_RANGE_ERROR", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "INVALID_BYTES_RANGE_ERROR",
"The number of bytes to read must be greater than 0.");
-Error.create ("INVALID_SEEK_OFFSET", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "INVALID_SEEK_OFFSET",
"The offset must be greater than or equals to 0.");
-Error.create ("NO_FILE", Error.getNextAvailableErrno (),
+Error.create (Error.getNextAvailableErrno (), "NO_FILE",
"The source is not a file.");
var BUFFER_SIZE = 16384;

0 comments on commit bd56e2a

Please sign in to comment.