def get_error_message(error):
    try:
        return error.args[0]
    except IndexError:
        return ''
Retrieve error message from error, if available.
dataset/ETHPy150Open CenterForOpenScience/osf.io/framework/transactions/utils.py/get_error_message