Skip to content

Commit

Permalink
Update helpers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Noltari committed Oct 25, 2023
1 parent 779d404 commit 1285d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def api_json_dumps(obj: Any) -> Any:

def api_json_error(error: str) -> dict[str, Any]:
"""Local API error."""
return api_json_response(api_error_dict(API_ERROR_METHOD_NOT_SUPPORTED))
return api_json_response(api_error_dict(error))


def api_json_response(data: dict[str, Any]) -> Any:
Expand Down

0 comments on commit 1285d7e

Please sign in to comment.