File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1251,7 +1251,7 @@ const executeNode = async ({
1251
1251
const errorStatus = isAborted ? 'TERMINATED' : 'ERROR'
1252
1252
const errorMessage = isAborted ? 'Flow execution was cancelled' : getErrorMessage ( error )
1253
1253
status = errorStatus
1254
- throw new Error ( errorMessage )
1254
+ throw new Error ( errorMessage , { cause : error } )
1255
1255
}
1256
1256
}
1257
1257
}
@@ -1826,7 +1826,7 @@ export const executeAgentFlow = async ({
1826
1826
const errorMessage = isAborted ? 'Flow execution was cancelled' : getErrorMessage ( error )
1827
1827
status = errorStatus
1828
1828
// ... existing error handling code
1829
- throw new Error ( errorMessage )
1829
+ throw new Error ( errorMessage , { cause : error } )
1830
1830
}
1831
1831
}
1832
1832
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "lib" : [" es2021 " ],
4
- "target" : " es2021 " /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ ,
3
+ "lib" : [" es2022 " ],
4
+ "target" : " es2022 " /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ ,
5
5
"experimentalDecorators" : true /* Enable experimental support for TC39 stage 2 draft decorators. */ ,
6
6
"emitDecoratorMetadata" : true /* Emit design-type metadata for decorated declarations in source files. */ ,
7
7
"module" : " commonjs" /* Specify what module code is generated. */ ,
You can’t perform that action at this time.
0 commit comments