make the error response with msg Args: msg (str): the error msg string of data
(msg: str)
| 74 | |
| 75 | |
| 76 | def error(msg: str) -> Response: |
| 77 | """make the error response with msg |
| 78 | |
| 79 | Args: |
| 80 | msg (str): the error msg string of data |
| 81 | """ |
| 82 | return jsonify(dict( |
| 83 | code=500, |
| 84 | msg=msg |
| 85 | )) |
| 86 | |
| 87 | |
| 88 | @dataclass |
no outgoing calls
no test coverage detected