File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ export function coerceAsError<T extends Error | any>(errorLike: T): T extends Er
1515 if ( ( errorLike as any ) instanceof Error ) {
1616 return errorLike as any ;
1717 }
18- const error = ( errorLike as any ) as Error ;
18+ const error = errorLike as any ;
1919 // Otherwise, attempt to reconstruct an error class from the object.
20- const message = error . message ? String ( error . message ) : String ( errorLike ) ;
21- const coercedError = new Error ( message ) ;
20+ const message = error . message || error . error || ( typeof errorLike === "string" ? errorLike : JSON . stringify ( errorLike ) ) ;
21+ const coercedError = new Error ( String ( message ) ) ;
2222 if ( error . stack ) {
2323 coercedError . stack = error . stack ;
2424 }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package dataform;
44
55import "protos/core.proto" ;
66import "protos/db_adapter.proto" ;
7+ import "google/protobuf/struct.proto" ;
78
89option go_package = "github.com/dataform-co/dataform/protos/dataform" ;
910
@@ -43,6 +44,8 @@ message ExecutionAction {
4344
4445 ActionDescriptor action_descriptor = 9 ;
4546
47+ string jit_code = 12 ;
48+
4649 reserved 1 , 3 , 7 ;
4750}
4851
@@ -59,6 +62,7 @@ message ExecutionGraph {
5962 repeated Target declaration_targets = 5 ;
6063
6164 repeated ExecutionAction actions = 3 ;
65+ google.protobuf.Struct jit_data = 7 ;
6266}
6367
6468message Timing {
You can’t perform that action at this time.
0 commit comments