Commit ab27c83561f5a312da7a6abe3221dfd7ee20d1fa

Edward Thomson 2019-05-12T22:05:26

revwalk: update error message for clarity

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/revwalk.c b/src/revwalk.c
index 7bb2911..935bd4d 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -195,7 +195,7 @@ int git_revwalk_push_range(git_revwalk *walk, const char *range)
 		return error;
 
 	if (!revspec.to) {
-		git_error_set(GIT_ERROR_INVALID, "invalid revspec. Only range supported.");
+		git_error_set(GIT_ERROR_INVALID, "invalid revspec: range not provided");
 		error = GIT_EINVALIDSPEC;
 		goto out;
 	}