Skip to content

Commit

Permalink
Implemented reviewer suggestion of error wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Mar 16, 2021
1 parent fa38464 commit db57dc3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/lsst/ap/association/association.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def run(self,
"Duplicate DiaSources found after association and merging "
"with history. This is likely due to re-running data with an "
"already populated Apdb. If this was not the case then there "
"was a failure in Association which should not happen. "
"Exiting.")
"was an unexpected failure in Association while matching "
"sources to objects, and should be reported. Exiting.")

diaObjects = diaObjects.append(matchResult.new_dia_objects,
sort=True)
Expand All @@ -153,8 +153,9 @@ def run(self,
raise RuntimeError(
"Duplicate DiaObjects created after association. This is "
"likely due to re-running data with an already populated "
"Apdb. If this was not the case then there was a failure in "
"Association which should not happen. Exiting.")
"Apdb. If this was not the case then there was an unexpected "
"failure in Association while matching and creating new "
"DiaObjectsand should be reported. Exiting.")

# Get the current filter being processed.
filterName = diaSources["filterName"].iat[0]
Expand Down

0 comments on commit db57dc3

Please sign in to comment.