Commit 4810de4a31f48025d3e38b020897f94c9598cb5e

Stefan Sperling 2018-04-01T23:16:35

we have implemented all object types, switch to better error code

diff --git a/lib/pack.c b/lib/pack.c
index 6313d03..10e8be9 100644
--- a/lib/pack.c
+++ b/lib/pack.c
@@ -885,7 +885,7 @@ resolve_delta_chain(struct got_delta_chain *deltas, struct got_repository *repo,
 		    delta_size);
 		break;
 	default:
-		return got_error(GOT_ERR_NOT_IMPL);
+		return got_error(GOT_ERR_OBJ_TYPE);
 	}
 
 	return err;
@@ -992,7 +992,7 @@ open_packed_object(struct got_object **obj, struct got_repository *repo,
 		break;
 
 	default:
-		err = got_error(GOT_ERR_NOT_IMPL);
+		err = got_error(GOT_ERR_OBJ_TYPE);
 		goto done;
 	}
 done: