Skip to content

Commit

Permalink
Error message should mention possible dir name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaytan committed Aug 29, 2024
1 parent 7b9a077 commit db8b739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nsls2api/api/v1/beamline_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def add_or_delete_detector(
if new_detector is None:
raise HTTPException(
status_code=409,
detail=f"Detector {detector.name} already exists in beamline {name}",
detail=f"Detector already exists in beamline {name} with either name '{detector.name}' or directory name '[detector.directory_name}'",
)

changed_detector = new_detector
Expand Down

0 comments on commit db8b739

Please sign in to comment.