Commit f22672d
errors: improve ERR_INVALID_OPT_VALUE error
* use util.inspect for value presentation
* allow to optionally specify error reason
PR-URL: #34671
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>1 parent a9a606f commit f22672dCopy full SHA for f22672d
File tree
Expand file treeCollapse file tree
9 files changed
+45
-26
lines changedOpen diff view settings
Filter options
- lib
- internal
- test/parallel
Expand file treeCollapse file tree
9 files changed
+45
-26
lines changedOpen diff view settings
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
908 | 908 | |
909 | 909 | |
910 | 910 | |
911 | | - |
| 911 | + |
912 | 912 | |
913 | 913 | |
914 | 914 | |
| ||
993 | 993 | |
994 | 994 | |
995 | 995 | |
996 | | - |
| 996 | + |
997 | 997 | |
998 | 998 | |
999 | 999 | |
|
Collapse file
+7-4Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1100 | 1100 | |
1101 | 1101 | |
1102 | 1102 | |
1103 | | - |
1104 | | - |
1105 | | - |
1106 | | - |
| 1103 | + |
| 1104 | + |
| 1105 | + |
| 1106 | + |
| 1107 | + |
| 1108 | + |
| 1109 | + |
1107 | 1110 | |
1108 | 1111 | |
1109 | 1112 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
38 | 37 | |
39 | 38 | |
40 | 39 | |
| ||
1489 | 1488 | |
1490 | 1489 | |
1491 | 1490 | |
1492 | | - |
| 1491 | + |
1493 | 1492 | |
1494 | 1493 | |
1495 | 1494 | |
|
Collapse file
test/parallel/test-crypto-keygen.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-keygen.js+24-13Lines changed: 24 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
| ||
705 | 705 | |
706 | 706 | |
707 | 707 | |
708 | | - |
| 708 | + |
709 | 709 | |
710 | 710 | |
711 | 711 | |
712 | 712 | |
713 | 713 | |
714 | 714 | |
| 715 | + |
715 | 716 | |
716 | 717 | |
717 | 718 | |
| ||
725 | 726 | |
726 | 727 | |
727 | 728 | |
728 | | - |
| 729 | + |
729 | 730 | |
730 | 731 | |
731 | 732 | |
| ||
761 | 762 | |
762 | 763 | |
763 | 764 | |
764 | | - |
| 765 | + |
765 | 766 | |
766 | 767 | |
767 | 768 | |
768 | 769 | |
769 | 770 | |
770 | 771 | |
| 772 | + |
771 | 773 | |
772 | 774 | |
773 | 775 | |
| ||
781 | 783 | |
782 | 784 | |
783 | 785 | |
784 | | - |
| 786 | + |
785 | 787 | |
786 | 788 | |
787 | 789 | |
| ||
802 | 804 | |
803 | 805 | |
804 | 806 | |
805 | | - |
| 807 | + |
806 | 808 | |
807 | 809 | |
808 | 810 | |
| ||
865 | 867 | |
866 | 868 | |
867 | 869 | |
| 870 | + |
| 871 | + |
868 | 872 | |
869 | 873 | |
870 | 874 | |
871 | 875 | |
872 | 876 | |
873 | | - |
| 877 | + |
874 | 878 | |
875 | 879 | |
876 | 880 | |
877 | 881 | |
878 | 882 | |
879 | 883 | |
| 884 | + |
| 885 | + |
880 | 886 | |
881 | 887 | |
882 | 888 | |
883 | 889 | |
884 | 890 | |
885 | 891 | |
886 | | - |
| 892 | + |
887 | 893 | |
888 | 894 | |
889 | 895 | |
| ||
893 | 899 | |
894 | 900 | |
895 | 901 | |
| 902 | + |
| 903 | + |
896 | 904 | |
897 | 905 | |
898 | 906 | |
899 | 907 | |
900 | 908 | |
901 | | - |
| 909 | + |
902 | 910 | |
903 | 911 | |
904 | 912 | |
905 | 913 | |
906 | 914 | |
907 | 915 | |
| 916 | + |
| 917 | + |
908 | 918 | |
909 | 919 | |
910 | 920 | |
911 | 921 | |
912 | 922 | |
913 | 923 | |
914 | | - |
| 924 | + |
915 | 925 | |
916 | 926 | |
917 | 927 | |
| ||
942 | 952 | |
943 | 953 | |
944 | 954 | |
945 | | - |
| 955 | + |
946 | 956 | |
947 | 957 | |
948 | 958 | |
| ||
1079 | 1089 | |
1080 | 1090 | |
1081 | 1091 | |
1082 | | - |
| 1092 | + |
1083 | 1093 | |
1084 | 1094 | |
1085 | 1095 | |
| ||
1182 | 1192 | |
1183 | 1193 | |
1184 | 1194 | |
| 1195 | + |
1185 | 1196 | |
1186 | 1197 | |
1187 | 1198 | |
| ||
1194 | 1205 | |
1195 | 1206 | |
1196 | 1207 | |
1197 | | - |
| 1208 | + |
1198 | 1209 | |
1199 | 1210 | |
1200 | 1211 | |
|
Collapse file
test/parallel/test-http2-client-request-options-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-client-request-options-errors.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| ||
48 | 49 | |
49 | 50 | |
50 | 51 | |
51 | | - |
| 52 | + |
52 | 53 | |
53 | 54 | |
54 | 55 | |
|
Collapse file
test/parallel/test-http2-respond-file-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-respond-file-errors.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| ||
45 | 46 | |
46 | 47 | |
47 | 48 | |
48 | | - |
| 49 | + |
49 | 50 | |
50 | 51 | |
51 | 52 | |
|
Collapse file
test/parallel/test-http2-respond-file-fd-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-respond-file-fd-errors.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
| ||
65 | 66 | |
66 | 67 | |
67 | 68 | |
68 | | - |
| 69 | + |
69 | 70 | |
70 | 71 | |
71 | 72 | |
|
Collapse file
test/parallel/test-performanceobserver.js
Copy file name to clipboardExpand all lines: test/parallel/test-performanceobserver.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
| 61 | + |
62 | 62 | |
63 | 63 | |
64 | 64 | |
|
Collapse file
test/parallel/test-streams-highwatermark.js
Copy file name to clipboardExpand all lines: test/parallel/test-streams-highwatermark.js+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
20 | 21 | |
21 | 22 | |
22 | 23 | |
| 24 | + |
| 25 | + |
23 | 26 | |
24 | 27 | |
25 | 28 | |
26 | 29 | |
27 | 30 | |
28 | 31 | |
29 | 32 | |
30 | | - |
| 33 | + |
31 | 34 | |
32 | 35 | |
33 | 36 | |
|
0 commit comments