From da533495c5707c18ee3a4c695dcb28d568b57ce5 Mon Sep 17 00:00:00 2001 From: Jakob Pfender Date: Wed, 18 May 2011 12:12:16 +0200 Subject: [PATCH] hashtable.c: Move to new error handling mechanism --- src/hashtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hashtable.c b/src/hashtable.c index ee6d3a461..1fb633c53 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -110,7 +110,7 @@ static int node_insert(git_hashtable *self, git_hashtable_node *new_node) } if (self->is_resizing) - return GIT_EBUSY; + return git__throw(GIT_EBUSY, "Failed to insert node. Hashtable is currently resizing"); resize_to(self, self->size * 2); git_hashtable_insert(self, new_node->key, new_node->value); @@ -248,7 +248,7 @@ int git_hashtable_remove(git_hashtable *self, const void *key) } } - return GIT_ENOTFOUND; + return git__throw(GIT_ENOTFOUND, "Failed to remove entry. Entry not found"); } int git_hashtable_merge(git_hashtable *self, git_hashtable *other)