Skip to content

Commit

Permalink
Use CCNET_ERR_INTERNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Sep 18, 2024
1 parent 9e3242d commit c63bcc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions common/rpc-service.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#define DEBUG_FLAG SEAFILE_DEBUG_OTHER
#include "log.h"

#define CCNET_ERR_INTERNAL 500

#ifndef SEAFILE_SERVER
#include "../daemon/vc-utils.h"

Expand Down
4 changes: 2 additions & 2 deletions common/user-mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ get_emailuser (CcnetUserManager *manager,
return emailuser;
} else if (rc < 0) {
if (error) {
g_set_error (error, CCNET_DOMAIN, 500, "Database error");
g_set_error (error, CCNET_DOMAIN, CCNET_ERR_INTERNAL, "Database error");
}
return NULL;
}
Expand All @@ -1178,7 +1178,7 @@ get_emailuser (CcnetUserManager *manager,
return emailuser;
} else if (rc < 0) {
if (error) {
g_set_error (error, CCNET_DOMAIN, 500, "Database error");
g_set_error (error, CCNET_DOMAIN, CCNET_ERR_INTERNAL, "Database error");
}
g_free (email_down);
return NULL;
Expand Down
2 changes: 2 additions & 0 deletions lib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ traverse_directory_win32 (wchar_t *path_w,

#define CCNET_DOMAIN g_quark_from_string("ccnet")

#define CCNET_ERR_INTERNAL 500


struct timeval timeval_from_msec (uint64_t milliseconds);

Expand Down

0 comments on commit c63bcc4

Please sign in to comment.