Skip to content

Commit aac9441

Browse files
author
Victor Duarte da Silva
committed
Fail if not parse the json
1 parent 382a92b commit aac9441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functionHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function runPythonHandler(funOptions, options){
2121
try {
2222
context.succeed( JSON.parse(results) );
2323
} catch (ex) {
24-
context.succeed( -1, results );
24+
context.fail(results);
2525
}
2626
} else {
2727
context.succeed( code ,results );

0 commit comments

Comments
 (0)