Skip to content

Commit

Permalink
Improve error message for when a duplicate strategy already exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Dec 14, 2024
1 parent 82daa55 commit eb42677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jesse/services/strategy_handler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def generate(name: str) -> JSONResponse:
return JSONResponse({
'status': 'error',
'message': f'Strategy "{name}" already exists.'
}, status_code=400)
}, status_code=409)

# generate from ExampleStrategy
dirname, filename = os.path.split(os.path.abspath(__file__))
Expand Down

0 comments on commit eb42677

Please sign in to comment.