Lines Matching refs:err

30 	err := createWorkingPath(config.OutputDirectory)
31 if err != nil {
32 return errors.Wrap(err, "Could not create working path")
35 commonManifest, err := defineCommonManifest(config)
36 if err != nil {
37 return err
42 err = clearOutputDirectory(config)
43 commitCSV, projectCSV, err := runPyScript(config, target)
44 if err != nil {
45 return errors.Wrap(err, "Error running python differential script")
47 err = TransferScriptOutputToDownstream(config, target, projectCSV, commitCSV, commonManifest)
48 if err != nil {
49 return errors.Wrap(err, "Error transferring script output to downstream")
57 if err := createWorkingPath(workingDirectory); err != nil {
58 return nil, err
70 if _, err := cmd.Output(); err != nil {
71 return nil, err
75 err := filesystem.ReadXMLAsEntity(
80 return &manifest, err
116 …ig ent.ApplicationConfig, target ent.DiffTarget) (projectCSV string, commitCSV string, err error) {
122 err = diffTarget(pyScript, config, target)
123 if err != nil {
124 return "", "", err
157 diffRows, commitRows, err := readCSVFiles(projectCSVFile, commitCSVFile)
158 if err != nil {
159 return err
162 manifestFileGroup, err := loadTargetManifests(config, common)
163 if err != nil {
164 return err
184 if err := filesystem.ReadXMLAsEntity(
187 ); err != nil {
188 return nil, err
200 diffRows, err := csvFileToDiffRows(projectCSVFile)
201 if err != nil {
202 return nil, nil, errors.Wrap(err, "Error converting CSV file to entities")
204 commitRows, err := CSVFileToCommitRows(commitCSVFile)
205 if err != nil {
206 return nil, nil, errors.Wrap(err, "Error converting CSV file to entities")
212 sourceRepo, err := repositories.NewSourceRepository()
213 if err != nil {
214 return errors.Wrap(err, "Error initializing Source Repository")
216 mappedTarget, err := sourceRepo.DiffTargetToMapped(target)
217 if err != nil {
218 return errors.Wrap(err, "Error mapping diff targets; a race condition is possible")
220 err = persistDiffRowsDownstream(mappedTarget, diffRows)
221 if err != nil {
222 return errors.Wrap(err, "Error persisting diff rows")
233 entities, err := filesystem.CSVFileToEntities(
239 if err != nil {
240 return nil, err
258 entities, err := filesystem.CSVFileToEntities(
264 if err != nil {
265 return nil, err
283 p, err := repositories.NewProjectRepository(mappedTarget)
284 if err != nil {
285 return errors.Wrap(err, "Error instantiating a new project repository")
287 err = p.InsertDiffRows(diffRows)
288 if err != nil {
289 return errors.Wrap(err, "Error inserting rows from controller")