* bump to 0.10.8 * Update PULL_REQUEST_TEMPLATE * Fix #468 "Messy error returns: Sometimes a string, sometimes an Error object" * Cleanup: remove an unused constant and duplicate method definitions * Cleanup: - fix minor errors in JSDoc comments, for example {string]} => {string} - fix parameter name "encode" => "encoding" (more logical, and it says so in the function's JSDoc too) - json-stream.js: split a looooong log message string constant into two parts and fix a typo ("maually"), and the type for objects is "Object" (capitalized) in Flow type annotations * Fix a (Flow) type conflict - fixes issue #461 * NEEDS REVIEW - Attempt to fix some of issue #460 (Error message normalization) Error messages reported by iOS and Android versions should be as similar as possible. Also, within the same system there should be consistency. This patch is an attempt to bring a LITTLE more of this consistency to the error messages. I also fixed some very few minor language issues, like "does not exist" (is the correct English). I tried keeping the changes to a minimum. Background: In my project code I want to know when a file already exists (e.g. after calling fs.createFile), and the only way is to check the error message string that I get. It's bad if they differ between versions (createFileASCII and createFile) and then also between Android and iOS version. At least some core part of the string should be the same, so that I have something to match. Ideally messages should come from a centralized easy (easier) to maintain file (for both iOS and Android), and ideally both systems should have the same errors and messages as far as possible.
|
|
||
1 |
|
1 |
|
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
|
|
|
4 |
|
|
5 |
|
5 |
|
|
|
||
13 |
|
13 |
|
14 |
|
14 |
|
15 |
|
15 |
|
16 |
|
|
|
|
16 |
|
|
17 |
|
17 |
|
18 |
|
18 |
|
19 |
|
19 |
|
|
|
||
78 |
|
78 |
|
79 |
|
79 |
|
80 |
|
80 |
|
81 |
|
|
|
|
81 |
|
|
82 |
|
82 |
|
83 |
|
83 |
|
84 |
|
84 |
|
|
|
||
100 |
|
100 |
|
101 |
|
101 |
|
102 |
|
102 |
|
103 |
|
|
|
|
103 |
|
|
104 |
|
104 |
|
105 |
|
105 |
|
106 |
|
106 |
|
|
|
||
127 |
|
127 |
|
128 |
|
128 |
|
129 |
|
129 |
|
130 |
|
|
|
|
130 |
|
|
131 |
|
131 |
|
132 |
|
132 |
|
133 |
|
133 |
|
|
|
||
309 |
|
309 |
|
310 |
|
310 |
|
311 |
|
311 |
|
312 |
|
|
|
|
312 |
|
|
|
313 |
|
|
313 |
|
314 |
|
314 |
|
315 |
|
315 |
|
316 |
|
|
|
||
324 |
|
325 |
|
325 |
|
326 |
|
326 |
|
327 |
|
327 |
|
|
|
|
328 |
|
|
328 |
|
329 |
|
329 |
|
330 |
|
330 |
|
331 |
|
|
|
||
336 |
|
337 |
|
337 |
|
338 |
|
338 |
|
339 |
|
339 |
|
|
|
|
340 |
|
|
340 |
|
341 |
|
341 |
|
342 |
|
342 |
|
343 |
|
|
|
||
433 |
|
434 |
|
434 |
|
435 |
|
435 |
|
436 |
|
436 |
|
|
|
|
437 |
|
|
437 |
|
438 |
|
438 |
|
439 |
|
439 |
|
440 |
|
440 |
|
441 |
|
441 |
|
442 |
|
|
443 |
|
|
442 |
|
444 |
|
443 |
|
445 |
|
444 |
|
446 |
|
|
|
||
454 |
|
456 |
|
455 |
|
457 |
|
456 |
|
458 |
|
457 |
|
|
|
|
459 |
|
|
458 |
|
460 |
|
459 |
|
461 |
|
460 |
|
462 |
|
|
|
||
495 |
|
497 |
|
496 |
|
498 |
|
497 |
|
499 |
|
498 |
|
|
|
|
500 |
|
|
499 |
|
501 |
|
500 |
|
502 |
|
501 |
|
503 |
|
|
|
||
535 |
|
537 |
|
536 |
|
538 |
|
537 |
|
539 |
|
538 |
|
|
|
|
540 |
|
|
539 |
|
541 |
|
540 |
|
542 |
|
541 |
|
543 |
|
|
|
||
559 |
|
561 |
|
560 |
|
562 |
|
561 |
|
563 |
|
562 |
|
|
|
|
564 |
|
|
563 |
|
565 |
|
564 |
|
566 |
|
565 |
|
567 |
|
|
|
||
585 |
|
587 |
|
586 |
|
588 |
|
587 |
|
589 |
|
588 |
|
|
|
|
590 |
|
|
589 |
|
591 |
|
590 |
|
592 |
|
591 |
|
593 |
|
|
|
||
597 |
|
599 |
|
598 |
|
600 |
|
599 |
|
601 |
|
600 |
|
|
|
|
602 |
|
|
601 |
|
603 |
|
602 |
|
604 |
|
603 |
|
605 |
|
604 |
|
606 |
|
605 |
|
|
|
|
607 |
|
|
606 |
|
608 |
|
607 |
|
609 |
|
608 |
|
610 |
|
609 |
|
611 |
|
610 |
|
612 |
|
611 |
|
|
|
|
613 |
|
|
612 |
|
614 |
|
613 |
|
615 |
|
614 |
|
616 |
|
|
|
||
630 |
|
632 |
|
631 |
|
633 |
|
632 |
|
634 |
|
633 |
|
|
|
|
635 |
|
|
634 |
|
636 |
|
635 |
|
637 |
|
636 |
|
638 |
|
|
|
||
709 |
|
711 |
|
710 |
|
712 |
|
711 |
|
713 |
|
712 |
|
|
|
|
714 |
|
|
713 |
|
715 |
|
714 |
|
716 |
|
715 |
|
717 |
|
716 |
|
718 |
|
717 |
|
|
|
|
719 |
|
|
718 |
|
720 |
|
719 |
|
|
|
|
721 |
|
|
720 |
|
722 |
|
721 |
|
723 |
|
722 |
|
724 |
|
723 |
|
725 |
|
724 |
|
726 |
|
725 |
|
|
|
726 |
|
|
|
|
727 |
|
|
727 |
|
728 |
|
728 |
|
|
|
|
729 |
|
|
|
730 |
|
|
|
731 |
|
|
729 |
|
732 |
|
730 |
|
733 |
|
731 |
|
734 |
|
|
|
||
747 |
|
750 |
|
748 |
|
751 |
|
749 |
|
752 |
|
750 |
|
|
|
|
753 |
|
|
751 |
|
754 |
|
752 |
|
755 |
|
753 |
|
756 |
|
754 |
|
757 |
|
755 |
|
|
|
|
758 |
|
|
756 |
|
759 |
|
757 |
|
760 |
|
758 |
|
761 |
|
|
|
||
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
|
|
13 |
|
12 |
|
14 |
|
13 |
|
15 |
|
14 |
|
16 |
|
15 |
|
17 |
|
16 |
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
17 |
|
23 |
|
18 |
|
24 |
|
19 |
|
|
|
||
50 |
|
45 |
|
51 |
|
46 |
|
52 |
|
47 |
|
53 |
|
|
|
|
48 |
|
|
54 |
|
49 |
|
55 |
|
50 |
|
56 |
|
51 |
|
|
|
||
67 |
|
62 |
|
68 |
|
63 |
|
69 |
|
64 |
|
70 |
|
|
|
|
65 |
|
|
71 |
|
66 |
|
72 |
|
67 |
|
73 |
|
68 |
|
|
|
||
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
|
|
13 |
|
12 |
|
14 |
|
13 |
|
15 |
|
14 |
|
16 |
|
15 |
|
17 |
|
16 |
|
18 |
|
|
|
|
17 |
|
|
19 |
|
18 |
|
20 |
|
|
|
|
19 |
|
|
21 |
|
20 |
|
22 |
|
21 |
|
23 |
|
22 |
|
|
|
||
28 |
|
27 |
|
29 |
|
28 |
|
30 |
|
29 |
|
31 |
|
|
|
|
30 |
|
|
32 |
|
31 |
|
33 |
|
32 |
|
34 |
|
33 |
|
35 |
|
34 |
|
36 |
|
|
|
|
35 |
|
|
37 |
|
36 |
|
38 |
|
37 |
|
39 |
|
38 |
|
40 |
|
39 |
|
41 |
|
|
|
|
40 |
|
|
42 |
|
41 |
|
43 |
|
42 |
|
44 |
|
43 |
|
|
|
||
50 |
|
49 |
|
51 |
|
50 |
|
52 |
|
51 |
|
53 |
|
|
|
|
52 |
|
|
54 |
|
53 |
|
55 |
|
54 |
|
56 |
|
55 |
|
|
|
||
19 |
|
19 |
|
20 |
|
20 |
|
21 |
|
21 |
|
22 |
|
|
|
|
22 |
|
|
23 |
|
23 |
|
24 |
|
24 |
|
25 |
|
25 |
|
|
|
||
83 |
|
83 |
|
84 |
|
84 |
|
85 |
|
85 |
|
86 |
|
|
|
87 |
|
|
|
|
86 |
|
|
|
87 |
|
|
88 |
|
88 |
|
89 |
|
89 |
|
90 |
|
90 |
|
91 |
|
91 |
|
92 |
|
|
|
|
92 |
|
|
93 |
|
93 |
|
94 |
|
94 |
|
95 |
|
95 |
|
|
|
||
110 |
|
110 |
|
111 |
|
111 |
|
112 |
|
112 |
|
|
113 |
|
|
113 |
|
114 |
|
114 |
|
115 |
|
115 |
|
116 |
|
|
|
||
154 |
|
155 |
|
155 |
|
156 |
|
156 |
|
157 |
|
157 |
|
|
|
|
158 |
|
|
158 |
|
159 |
|
159 |
|
160 |
|
160 |
|
161 |
|
|
|
||
170 |
|
171 |
|
171 |
|
172 |
|
172 |
|
173 |
|
173 |
|
|
|
|
174 |
|
|
174 |
|
175 |
|
175 |
|
176 |
|
176 |
|
177 |
|
|
|
||
187 |
|
188 |
|
188 |
|
189 |
|
189 |
|
190 |
|
190 |
|
|
|
|
191 |
|
|
191 |
|
192 |
|
192 |
|
193 |
|
193 |
|
194 |
|
|
|
||
224 |
|
225 |
|
225 |
|
226 |
|
226 |
|
227 |
|
227 |
|
|
|
|
228 |
|
|
228 |
|
229 |
|
229 |
|
230 |
|
230 |
|
231 |
|
|
|
||
302 |
|
303 |
|
303 |
|
304 |
|
304 |
|
305 |
|
305 |
|
|
|
|
306 |
|
|
306 |
|
307 |
|
307 |
|
|
|
308 |
|
|
|
|
308 |
|
|
309 |
|
309 |
|
310 |
|
310 |
|
311 |
|
311 |
|
|
|
||
358 |
|
358 |
|
359 |
|
359 |
|
360 |
|
360 |
|
361 |
|
|
|
|
361 |
|
|
362 |
|
362 |
|
363 |
|
363 |
|
364 |
|
364 |
|
|
|
||
17 |
|
17 |
|
18 |
|
18 |
|
19 |
|
19 |
|
20 |
|
|
|
|
20 |
|
|
21 |
|
21 |
|
22 |
|
22 |
|
23 |
|
23 |
|
|
|
||
118 |
|
118 |
|
119 |
|
119 |
|
120 |
|
120 |
|
121 |
|
|
|
|
121 |
|
|
122 |
|
122 |
|
123 |
|
123 |
|
124 |
|
124 |
|
|
|
||
520 |
|
520 |
|
521 |
|
521 |
|
522 |
|
522 |
|
523 |
|
|
|
524 |
|
|
|
|
523 |
|
|
525 |
|
524 |
|
526 |
|
525 |
|
527 |
|
|
|
|
526 |
|
|
528 |
|
527 |
|
529 |
|
|
|
|
528 |
|
|
530 |
|
529 |
|
531 |
|
530 |
|
532 |
|
531 |
|
|
|
||
539 |
|
538 |
|
540 |
|
539 |
|
541 |
|
540 |
|
542 |
|
|
|
|
541 |
|
|
543 |
|
542 |
|
544 |
|
|
|
545 |
|
|
|
|
543 |
|
|
|
544 |
|
|
546 |
|
545 |
|
547 |
|
546 |
|
548 |
|
547 |
|
|
|
||
13 |
|
13 |
|
14 |
|
14 |
|
15 |
|
15 |
|
16 |
|
|
|
|
16 |
|
|
17 |
|
17 |
|
18 |
|
18 |
|
19 |
|
19 |
|
|
|
||
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
28 |
|
29 |
|
|
|
|
29 |
|
|
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
32 |
|
|
|
||
194 |
|
194 |
|
195 |
|
195 |
|
196 |
|
196 |
|
197 |
|
|
|
|
197 |
|
|
198 |
|
198 |
|
199 |
|
199 |
|
200 |
|
200 |
|
|
|
||
223 |
|
223 |
|
224 |
|
224 |
|
225 |
|
225 |
|
226 |
|
|
|
|
226 |
|
|
227 |
|
227 |
|
228 |
|
228 |
|
229 |
|
229 |
|
|
|
||
326 |
|
326 |
|
327 |
|
327 |
|
328 |
|
328 |
|
329 |
|
|
|
|
329 |
|
|
330 |
|
330 |
|
331 |
|
331 |
|
332 |
|
332 |
|
|
|
||
362 |
|
362 |
|
363 |
|
363 |
|
364 |
|
364 |
|
365 |
|
|
|
|
365 |
|
|
366 |
|
366 |
|
367 |
|
367 |
|
368 |
|
368 |
|
|
|
||
447 |
|
447 |
|
448 |
|
448 |
|
449 |
|
449 |
|
450 |
|
|
|
|
450 |
|
|
451 |
|
451 |
|
452 |
|
452 |
|
453 |
|
453 |
|
|
|
||
529 |
|
529 |
|
530 |
|
530 |
|
531 |
|
531 |
|
532 |
|
|
|
|
532 |
|
|
533 |
|
533 |
|
534 |
|
534 |
|
535 |
|
535 |
|
|
|
||
549 |
|
549 |
|
550 |
|
550 |
|
551 |
|
551 |
|
552 |
|
|
|
|
552 |
|
|
553 |
|
553 |
|
554 |
|
554 |
|
555 |
|
555 |
|
|
|
||
563 |
|
563 |
|
564 |
|
564 |
|
565 |
|
565 |
|
566 |
|
|
|
|
566 |
|
|
567 |
|
567 |
|
568 |
|
568 |
|
569 |
|
569 |
|
|
|
||
163 |
|
163 |
|
164 |
|
164 |
|
165 |
|
165 |
|
166 |
|
|
|
|
166 |
|
|
167 |
|
167 |
|
168 |
|
168 |
|
169 |
|
169 |
|
|
|
||
254 |
|
254 |
|
255 |
|
255 |
|
256 |
|
256 |
|
257 |
|
|
|
|
257 |
|
|
258 |
|
258 |
|
259 |
|
259 |
|
260 |
|
260 |
|
261 |
|
|
|
|
261 |
|
|
262 |
|
262 |
|
263 |
|
263 |
|
264 |
|
264 |
|
|
|
||
335 |
|
335 |
|
336 |
|
336 |
|
337 |
|
337 |
|
338 |
|
|
|
|
338 |
|
|
339 |
|
339 |
|
340 |
|
340 |
|
341 |
|
341 |
|
|
|
||
452 |
|
452 |
|
453 |
|
453 |
|
454 |
|
454 |
|
455 |
|
|
|
|
455 |
|
|
456 |
|
456 |
|
457 |
|
457 |
|
458 |
|
458 |
|
459 |
|
|
|
|
459 |
|
|
460 |
|
460 |
|
461 |
|
|
|
|
461 |
|
|
462 |
|
462 |
|
463 |
|
463 |
|
464 |
|
464 |
|
|
|
||
485 |
|
485 |
|
486 |
|
486 |
|
487 |
|
487 |
|
488 |
|
|
|
|
488 |
|
|
489 |
|
489 |
|
490 |
|
490 |
|
491 |
|
491 |
|
|
|
||
495 |
|
495 |
|
496 |
|
496 |
|
497 |
|
497 |
|
498 |
|
|
|
|
498 |
|
|
499 |
|
499 |
|
500 |
|
500 |
|
501 |
|
501 |
|
|
|
||
571 |
|
571 |
|
572 |
|
572 |
|
573 |
|
573 |
|
574 |
|
|
|
|
574 |
|
|
575 |
|
575 |
|
576 |
|
576 |
|
577 |
|
577 |
|
|
|
||
632 |
|
632 |
|
633 |
|
633 |
|
634 |
|
634 |
|
635 |
|
|
|
|
635 |
|
|
636 |
|
636 |
|
637 |
|
637 |
|
638 |
|
|
|
|
638 |
|
|
639 |
|
639 |
|
640 |
|
640 |
|
641 |
|
641 |
|
|
|
||
712 |
|
712 |
|
713 |
|
713 |
|
714 |
|
714 |
|
715 |
|
|
|
|
715 |
|
|
716 |
|
716 |
|
717 |
|
717 |
|
718 |
|
718 |
|
|
|
||
765 |
|
765 |
|
766 |
|
766 |
|
767 |
|
767 |
|
768 |
|
|
|
|
768 |
|
|
769 |
|
769 |
|
770 |
|
770 |
|
771 |
|
771 |
|
|
|
||
793 |
|
793 |
|
794 |
|
794 |
|
795 |
|
795 |
|
796 |
|
|
|
|
796 |
|
|
|
||
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
4 |
|
5 |
|
|
|
|
5 |
|
|
6 |
|
6 |
|
7 |
|
7 |
|
8 |
|
8 |
|
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
13 |
|
16 |
|
14 |
|
17 |
|
15 |
|
18 |
|
|
|
||
1 |
|
1 |
|
2 |
|
2 |
|
3 |
|
|
|
|
3 |
|
|
4 |
|
4 |
|
5 |
|
5 |
|
6 |
|
6 |
|