Skip to content

Commit

Permalink
trying new approach due to dumb adobe parser
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Sep 20, 2024
1 parent fe1ac16 commit 12d591a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions system/ioc/Builder.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -291,20 +291,19 @@ component serializable="false" accessors="true" {
.rows
.toList( chr( 13 ) & chr( 10 ) );

var throwAttributes = {
type : "Builder.BuildCFCDependencyException",
extendedInfo: "Current Injector -> #variables.injector.getName()#"
};

if ( server.keyExists( "boxlang" ) ) {
throw(
type : "Builder.BuildCFCDependencyException",
extendedInfo: "Current Injector -> #variables.injector.getName()#",
object : e
);
throwAttributes.object = e;

} else {
throw(
type : "Builder.BuildCFCDependencyException",
message : "Error building: #arguments.mapping.getName()# -> #e.message# #e.detail#.",
detail : "DSL: #len( arguments.mapping.getDSL() ) ? arguments.mapping.getDSL() : "none"#; Path: #arguments.mapping.getPath()#; Error Location: #reducedTagContext#",
extendedInfo: "Current Injector -> #variables.injector.getName()#"
);
throwAttributes.message = "Error building: #arguments.mapping.getName()# -> #e.message# #e.detail#.";
throwAttributes.detail = "DSL: #len( arguments.mapping.getDSL() ) ? arguments.mapping.getDSL() : "none"#; Path: #arguments.mapping.getPath()#; Error Location: #reducedTagContext#";
}
throw( argumentCollection = throwAttributes );
}
}

Expand Down

0 comments on commit 12d591a

Please sign in to comment.