Skip to content

AgManager: Use AgAccountsError in set_error_from_db().

This is a follow-up to 6b39f6e4 ("Use new AgAccountsError internally"). Use the right enum type to avoid build errors with clang:

ag-manager.c:503:16: error: implicit conversion from enumeration type 'AgAccountsError' to different enumeration type 'AgError' [-Werror,-Wenum-conversion]
        code = AG_ACCOUNTS_ERROR_DB_LOCKED;
             ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ag-manager.c:508:16: error: implicit conversion from enumeration type 'AgAccountsError' to different enumeration type 'AgError' [-Werror,-Wenum-conversion]
        code = AG_ACCOUNTS_ERROR_DB;
             ~ ^~~~~~~~~~~~~~~~~~~~

Merge request reports