Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
put required arg on ERR_INVALID_ARG_VALUE
  • Loading branch information
IgorHalfeld committed Dec 11, 2020
commit ffb18618b34a89d3751627c5da26754142eac6da
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ function ftruncate(fd, len = 0, callback) {
validateInteger(len, 'len');

if (len < 0) {
throw new ERR_INVALID_ARG_VALUE(len);
throw new ERR_INVALID_ARG_VALUE('len', len);
}

callback = makeCallback(callback);
Expand All @@ -861,7 +861,7 @@ function ftruncateSync(fd, len = 0) {
validateInteger(len, 'len');

if (len < 0) {
throw new ERR_INVALID_ARG_VALUE(len);
throw new ERR_INVALID_ARG_VALUE('len', len);
}

const ctx = {};
Expand Down