• Home
  • Raw
  • Download

Lines Matching refs:err

71   const validateError = (err) => {  argument
72 assert.strictEqual(nonexistentFile, err.path);
74 err.message,
76 assert.strictEqual(err.errno, UV_ENOENT);
77 assert.strictEqual(err.code, 'ENOENT');
78 assert.strictEqual(err.syscall, 'stat');
92 const validateError = (err) => {
93 assert.strictEqual(nonexistentFile, err.path);
95 err.message,
97 assert.strictEqual(err.errno, UV_ENOENT);
98 assert.strictEqual(err.code, 'ENOENT');
99 assert.strictEqual(err.syscall, 'lstat');
112 const validateError = (err) => {
113 assert.strictEqual(err.message, 'EBADF: bad file descriptor, fstat');
114 assert.strictEqual(err.errno, UV_EBADF);
115 assert.strictEqual(err.code, 'EBADF');
116 assert.strictEqual(err.syscall, 'fstat');
132 const validateError = (err) => {
133 assert.strictEqual(nonexistentFile, err.path);
135 err.message,
137 assert.strictEqual(err.errno, UV_ENOENT);
138 assert.strictEqual(err.code, 'ENOENT');
139 assert.strictEqual(err.syscall, 'lstat');
153 const validateError = (err) => {
154 assert.strictEqual(nonexistentFile, err.path);
156 err.message,
158 assert.strictEqual(err.errno, UV_ENOENT);
159 assert.strictEqual(err.code, 'ENOENT');
160 assert.strictEqual(err.syscall, 'realpath');
174 const validateError = (err) => {
175 assert.strictEqual(nonexistentFile, err.path);
177 err.message,
179 assert.strictEqual(err.errno, UV_ENOENT);
180 assert.strictEqual(err.code, 'ENOENT');
181 assert.strictEqual(err.syscall, 'readlink');
195 const validateError = (err) => {
196 assert.strictEqual(nonexistentFile, err.path);
198 assert.ok(err.dest.endsWith('foo'),
199 `expect ${err.dest} to end with 'foo'`);
202 assert.ok(regexp.test(err.message),
203 `Expect ${err.message} to match ${regexp}`);
204 assert.strictEqual(err.errno, UV_ENOENT);
205 assert.strictEqual(err.code, 'ENOENT');
206 assert.strictEqual(err.syscall, 'link');
220 const validateError = (err) => {
221 assert.strictEqual(existingFile, err.path);
222 assert.strictEqual(existingFile2, err.dest);
224 err.message,
227 assert.strictEqual(err.errno, UV_EEXIST);
228 assert.strictEqual(err.code, 'EEXIST');
229 assert.strictEqual(err.syscall, 'link');
243 const validateError = (err) => {
244 assert.strictEqual(existingFile, err.path);
245 assert.strictEqual(existingFile2, err.dest);
247 err.message,
250 assert.strictEqual(err.errno, UV_EEXIST);
251 assert.strictEqual(err.code, 'EEXIST');
252 assert.strictEqual(err.syscall, 'symlink');
266 const validateError = (err) => {
267 assert.strictEqual(nonexistentFile, err.path);
269 err.message,
271 assert.strictEqual(err.errno, UV_ENOENT);
272 assert.strictEqual(err.code, 'ENOENT');
273 assert.strictEqual(err.syscall, 'unlink');
287 const validateError = (err) => {
288 assert.strictEqual(nonexistentFile, err.path);
290 assert.ok(err.dest.endsWith('foo'),
291 `expect ${err.dest} to end with 'foo'`);
294 assert.ok(regexp.test(err.message),
295 `Expect ${err.message} to match ${regexp}`);
296 assert.strictEqual(err.errno, UV_ENOENT);
297 assert.strictEqual(err.code, 'ENOENT');
298 assert.strictEqual(err.syscall, 'rename');
313 const validateError = (err) => {
314 assert.strictEqual(existingDir, err.path);
315 assert.strictEqual(existingDir2, err.dest);
316 assert.strictEqual(err.syscall, 'rename');
318 if (err.code === 'ENOTEMPTY') {
320 err.message,
323 assert.strictEqual(err.errno, UV_ENOTEMPTY);
324 } else if (err.code === 'EXDEV') { // Not on the same mounted filesystem
326 err.message,
329 } else if (err.code === 'EEXIST') { // smartos and aix
331 err.message,
334 assert.strictEqual(err.errno, UV_EEXIST);
337 err.message,
340 assert.strictEqual(err.errno, UV_EPERM);
341 assert.strictEqual(err.code, 'EPERM');
356 const validateError = (err) => {
357 assert.strictEqual(nonexistentFile, err.path);
359 err.message,
361 assert.strictEqual(err.errno, UV_ENOENT);
362 assert.strictEqual(err.code, 'ENOENT');
363 assert.strictEqual(err.syscall, 'rmdir');
377 const validateError = (err) => {
378 assert.strictEqual(existingFile, err.path);
379 assert.strictEqual(err.syscall, 'rmdir');
380 if (err.code === 'ENOTDIR') {
382 err.message,
384 assert.strictEqual(err.errno, UV_ENOTDIR);
387 err.message,
389 assert.strictEqual(err.errno, UV_ENOENT);
390 assert.strictEqual(err.code, 'ENOENT');
405 const validateError = (err) => {
406 assert.strictEqual(existingFile, err.path);
408 err.message,
410 assert.strictEqual(err.errno, UV_EEXIST);
411 assert.strictEqual(err.code, 'EEXIST');
412 assert.strictEqual(err.syscall, 'mkdir');
426 const validateError = (err) => {
427 assert.strictEqual(nonexistentFile, err.path);
429 err.message,
431 assert.strictEqual(err.errno, UV_ENOENT);
432 assert.strictEqual(err.code, 'ENOENT');
433 assert.strictEqual(err.syscall, 'chmod');
447 const validateError = (err) => {
448 assert.strictEqual(nonexistentFile, err.path);
450 err.message,
452 assert.strictEqual(err.errno, UV_ENOENT);
453 assert.strictEqual(err.code, 'ENOENT');
454 assert.strictEqual(err.syscall, 'open');
469 const validateError = (err) => {
470 assert.strictEqual(err.message, 'EBADF: bad file descriptor, close');
471 assert.strictEqual(err.errno, UV_EBADF);
472 assert.strictEqual(err.code, 'EBADF');
473 assert.strictEqual(err.syscall, 'close');
489 const validateError = (err) => {
490 assert.strictEqual(nonexistentFile, err.path);
492 err.message,
494 assert.strictEqual(err.errno, UV_ENOENT);
495 assert.strictEqual(err.code, 'ENOENT');
496 assert.strictEqual(err.syscall, 'open');
510 const validateError = (err) => {
511 assert.strictEqual(nonexistentFile, err.path);
513 err.message,
515 assert.strictEqual(err.errno, UV_ENOENT);
516 assert.strictEqual(err.code, 'ENOENT');
517 assert.strictEqual(err.syscall, 'scandir');
531 const validateError = (err) => {
532 assert.strictEqual(err.syscall, 'ftruncate');
534 if (err.code === 'EBADF') {
535 assert.strictEqual(err.message, 'EBADF: bad file descriptor, ftruncate');
536 assert.strictEqual(err.errno, UV_EBADF);
538 assert.strictEqual(err.message, 'EINVAL: invalid argument, ftruncate');
539 assert.strictEqual(err.errno, UV_EINVAL);
540 assert.strictEqual(err.code, 'EINVAL');
557 const validateError = (err) => {
558 assert.strictEqual(err.message, 'EBADF: bad file descriptor, fdatasync');
559 assert.strictEqual(err.errno, UV_EBADF);
560 assert.strictEqual(err.code, 'EBADF');
561 assert.strictEqual(err.syscall, 'fdatasync');
577 const validateError = (err) => {
578 assert.strictEqual(err.message, 'EBADF: bad file descriptor, fsync');
579 assert.strictEqual(err.errno, UV_EBADF);
580 assert.strictEqual(err.code, 'EBADF');
581 assert.strictEqual(err.syscall, 'fsync');
597 const validateError = (err) => {
598 assert.strictEqual(nonexistentFile, err.path);
600 err.message,
602 assert.strictEqual(err.errno, UV_ENOENT);
603 assert.strictEqual(err.code, 'ENOENT');
604 assert.strictEqual(err.syscall, 'chown');
620 const validateError = (err) => {
621 assert.strictEqual(nonexistentFile, err.path);
623 err.message,
625 assert.strictEqual(err.errno, UV_ENOENT);
626 assert.strictEqual(err.code, 'ENOENT');
627 assert.strictEqual(err.syscall, 'utime');
642 const validateError = (err) => {
644 assert(pathPrefix.test(err.path),
645 `Expect ${err.path} to match ${pathPrefix}`);
649 assert(prefix.test(err.message),
650 `Expect ${err.message} to match ${prefix}`);
652 assert.strictEqual(err.errno, UV_ENOENT);
653 assert.strictEqual(err.code, 'ENOENT');
654 assert.strictEqual(err.syscall, 'mkdtemp');
685 const validateError = (err) => { argument
686 if (err.code === 'ENOENT') { // Could be ENOENT or EEXIST
687 assert.strictEqual(err.message,
690 assert.strictEqual(err.errno, UV_ENOENT);
691 assert.strictEqual(err.code, 'ENOENT');
692 assert.strictEqual(err.syscall, 'copyfile');
694 assert.strictEqual(err.message,
697 assert.strictEqual(err.errno, UV_EEXIST);
698 assert.strictEqual(err.code, 'EEXIST');
699 assert.strictEqual(err.syscall, 'copyfile');
715 const validateError = (err) => {
716 assert.strictEqual(err.message,
719 assert.strictEqual(err.errno, UV_ENOENT);
720 assert.strictEqual(err.code, 'ENOENT');
721 assert.strictEqual(err.syscall, 'copyfile');
736 const validateError = (err) => {
737 assert.strictEqual(err.message, 'EBADF: bad file descriptor, read');
738 assert.strictEqual(err.errno, UV_EBADF);
739 assert.strictEqual(err.code, 'EBADF');
740 assert.strictEqual(err.syscall, 'read');
757 const validateError = (err) => {
758 assert.strictEqual(err.message, 'EBADF: bad file descriptor, fchmod');
759 assert.strictEqual(err.errno, UV_EBADF);
760 assert.strictEqual(err.code, 'EBADF');
761 assert.strictEqual(err.syscall, 'fchmod');
777 const validateError = (err) => {
778 assert.strictEqual(err.message, 'EBADF: bad file descriptor, fchown');
779 assert.strictEqual(err.errno, UV_EBADF);
780 assert.strictEqual(err.code, 'EBADF');
781 assert.strictEqual(err.syscall, 'fchown');
798 const validateError = (err) => {
799 assert.strictEqual(err.message, 'EBADF: bad file descriptor, write');
800 assert.strictEqual(err.errno, UV_EBADF);
801 assert.strictEqual(err.code, 'EBADF');
802 assert.strictEqual(err.syscall, 'write');
819 const validateError = (err) => {
820 assert.strictEqual(err.message, 'EBADF: bad file descriptor, write');
821 assert.strictEqual(err.errno, UV_EBADF);
822 assert.strictEqual(err.code, 'EBADF');
823 assert.strictEqual(err.syscall, 'write');
840 const validateError = (err) => {
841 assert.strictEqual(err.message, 'EBADF: bad file descriptor, futime');
842 assert.strictEqual(err.errno, UV_EBADF);
843 assert.strictEqual(err.code, 'EBADF');
844 assert.strictEqual(err.syscall, 'futime');