Skip to content

Commit

Permalink
[UPDATE] return invalid increment in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Mar 20, 2015
1 parent 7a8df24 commit b65ef57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function indexspace( str, len ) {
}
// Handle zero increment...
if ( inc === 0 ) {
throw new Error( 'indexspace()::invalid syntax. Increment must be an integer not equal to 0.' );
throw new Error( 'indexspace()::invalid syntax. Increment must be an integer not equal to 0. Value: `' + inc + '`.' );
}

// START //
Expand Down

0 comments on commit b65ef57

Please sign in to comment.