File size: 232 Bytes
a3d6c18
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
def error_dict(error_text: str):
    """
    Generates a dictionary containing $error_text error
    :param error_text: Error text
    :return: error dictionary
    """
    resp = {"errors": [{"title": error_text}]}
    return resp