File tree 3 files changed +12
-3
lines changed
modules/st2-action-reporter/reporters
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,17 @@ export default function runLocal(execution) {
28
28
execution . result && execution . result . stderr ? [
29
29
< div key = "error" className = { style . source } > Error</ div > ,
30
30
< Highlight well lines = { 20 } className = { style . highlight } key = "error-code" code = { execution . result . stderr } type = "result" id = { execution . id } /> ,
31
+ ] : execution . result && execution . result . error ? [
32
+ < div key = "error" className = { style . source } > Error</ div > ,
33
+ < Highlight well lines = { 20 } className = { style . highlight } key = "error-code" code = { execution . result . error } type = "result" id = { execution . id } /> ,
31
34
] : null ,
32
35
33
36
execution . result && execution . result . traceback ? [
34
37
< div key = "traceback" className = { style . source } > Traceback</ div > ,
35
38
< Highlight well lines = { 20 } className = { style . highlight } key = "traceback-code" code = { [ execution . result . error , execution . result . traceback ] . join ( '\n' ) } type = "result" id = { execution . id } /> ,
36
39
] : null ,
37
40
38
- ! execution . result || ( ! execution . result . stdout && ! execution . result . stderr && ! execution . result . traceback ) ? (
41
+ ! execution . result || ( ! execution . result . stdout && ! execution . result . stderr && ! execution . result . error && ! execution . result . traceback ) ? (
39
42
< Highlight well className = { style . highlight } key = "none" code = "// Action produced no data" type = "result" id = { execution . id } />
40
43
) : null ,
41
44
] ;
Original file line number Diff line number Diff line change @@ -33,14 +33,17 @@ export default function runPython(execution) {
33
33
execution . result && execution . result . stderr ? [
34
34
< div key = "error" className = { style . source } > Error</ div > ,
35
35
< Highlight well lines = { 20 } className = { style . highlight } key = "error-code" code = { execution . result . stderr } type = "result" id = { execution . id } /> ,
36
+ ] : execution . result && execution . result . error ? [
37
+ < div key = "error" className = { style . source } > Error</ div > ,
38
+ < Highlight well lines = { 20 } className = { style . highlight } key = "error-code" code = { execution . result . error } type = "result" id = { execution . id } /> ,
36
39
] : null ,
37
40
38
41
execution . result && execution . result . traceback ? [
39
42
< div key = "traceback" className = { style . source } > Traceback</ div > ,
40
43
< Highlight well lines = { 20 } className = { style . highlight } key = "traceback-code" code = { [ execution . result . error , execution . result . traceback ] . join ( '\n' ) } type = "result" id = { execution . id } /> ,
41
44
] : null ,
42
45
43
- ! execution . result || ( ! execution . result . result && ! execution . result . stdout && ! execution . result . stderr && ! execution . result . traceback ) ? (
46
+ ! execution . result || ( ! execution . result . result && ! execution . result . stdout && ! execution . result . stderr && ! execution . result . error && ! execution . result . traceback ) ? (
44
47
< Highlight well className = { style . highlight } key = "none" code = "// Action produced no data" />
45
48
) : null ,
46
49
] . filter ( v => v ) ;
Original file line number Diff line number Diff line change @@ -39,14 +39,17 @@ export default function runRemote(execution) {
39
39
result && result . stderr ? [
40
40
< div key = "error" className = { style . source } > Error</ div > ,
41
41
< Highlight well lines = { 20 } className = { style . highlight } key = "error-code" code = { result . stderr } type = "result" id = { execution . id } /> ,
42
+ ] :result && result . error ? [
43
+ < div key = "error" className = { style . source } > Error</ div > ,
44
+ < Highlight well lines = { 20 } className = { style . highlight } key = "error-code" code = { result . error } type = "result" id = { execution . id } /> ,
42
45
] : null ,
43
46
44
47
result && result . traceback ? [
45
48
< div key = "traceback" className = { style . source } > Traceback</ div > ,
46
49
< Highlight well lines = { 20 } className = { style . highlight } key = "traceback-code" code = { [ result . error , result . traceback ] . join ( '\n' ) } type = "result" id = { execution . id } /> ,
47
50
] : null ,
48
51
49
- ! result || ( ! result . result && ! result . stderr && ! result . stdout && ! result . traceback ) ? (
52
+ ! result || ( ! result . result && ! result . stderr && ! result . stdout && ! result . error && ! result . traceback ) ? (
50
53
< Highlight well className = { style . highlight } key = "none" code = "// Action produced no data" />
51
54
) : null ,
52
55
] ;
You can’t perform that action at this time.
0 commit comments