Commit 2d267b8
committed
fix: improve error handling of
Currently, errors arising from interpolating the command line of these
interfaces is handled poorly at the ``Node`` level.
If the command line cannot be built, the error is printed in the logfile
but the exception is caught and never raised (i.e., likely leading to an
infinite loop as the execution is not stopped).
I have experienced that while debugging fMRIPrep.
To learn which of the inputs of a faulty interface derived from
``CommandLine`` was not being formatted, I had to also add the error
annotation proposed for the ``_parse_inputs`` inner loop.CommandLine interfaces1 parent eab4b2a commit 2d267b8
File tree
3 files changed
+40
-9
lines changed- nipype
- interfaces/base
- pipeline/engine
- utils
3 files changed
+40
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
610 | 611 | | |
611 | 612 | | |
612 | 613 | | |
| |||
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
626 | | - | |
| 627 | + | |
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
| |||
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
| 642 | + | |
| 643 | + | |
641 | 644 | | |
642 | 645 | | |
643 | 646 | | |
| |||
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
672 | 683 | | |
673 | 684 | | |
674 | 685 | | |
| |||
716 | 727 | | |
717 | 728 | | |
718 | 729 | | |
719 | | - | |
720 | 730 | | |
721 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
722 | 738 | | |
723 | 739 | | |
724 | 740 | | |
| |||
742 | 758 | | |
743 | 759 | | |
744 | 760 | | |
745 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
746 | 766 | | |
747 | 767 | | |
748 | 768 | | |
| |||
907 | 927 | | |
908 | 928 | | |
909 | 929 | | |
910 | | - | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
911 | 938 | | |
912 | 939 | | |
913 | 940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
711 | 714 | | |
712 | 715 | | |
713 | 716 | | |
| 717 | + | |
714 | 718 | | |
715 | 719 | | |
716 | 720 | | |
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
0 commit comments