@@ -261,7 +261,7 @@ func (d *DaVinciGenerator) buildDataSingleFlow(flow davinci.Flow, parsedIntf map
261261 }) {
262262 connectionProperties , err := getConnectionProperties (* nodeData .ConnectorID )
263263 if err != nil {
264- return fmt .Errorf ("Failed to get connection properties for connector ID %s: %s" , * nodeData .ConnectorID , err )
264+ return fmt .Errorf ("failed to get connection properties for connector ID %s: %s" , * nodeData .ConnectorID , err )
265265 }
266266
267267 d .ConnectionsData = append (d .ConnectionsData , connectionData {
@@ -289,7 +289,7 @@ func (d *DaVinciGenerator) buildDataSingleFlow(flow davinci.Flow, parsedIntf map
289289 subflowID := nodeData .Properties .SubFlowID .Value
290290
291291 if subflowID .Label == nil || subflowID .Value == nil {
292- return fmt .Errorf ("Potentially corrupt DaVinci export file. Subflow connector with ID %s is missing required fields" , * nodeData .ID )
292+ return fmt .Errorf ("potentially corrupt DaVinci export file. Subflow connector with ID %s is missing required fields" , * nodeData .ID )
293293 }
294294
295295 if ! slices .ContainsFunc (subflowLinks , func (v flowSubflowLink ) bool {
@@ -915,12 +915,12 @@ func (d *DaVinciGenerator) writeAsset(flowAsset flowAssetData) error {
915915
916916 fileData , err := json .MarshalIndent (flowAsset .flowMap , "" , " " )
917917 if err != nil {
918- return fmt .Errorf ("Cannot marshal asset data: %s" , err )
918+ return fmt .Errorf ("cannot marshal asset data: %s" , err )
919919 }
920920
921921 err = os .WriteFile (fmt .Sprintf ("%s/%s" , d .outputPath , flowAsset .path ), fileData , 0600 )
922922 if err != nil {
923- return fmt .Errorf ("Cannot write asset file %s: %s" , flowAsset .path , err )
923+ return fmt .Errorf ("cannot write asset file %s: %s" , flowAsset .path , err )
924924 }
925925
926926 return nil
0 commit comments