-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silencing 404s on gvfs/config #516
Conversation
To do:
When will I do these? I dunno, both my previous predictions proved too optimistic, so the rational move is to adjust the estimate upwards, but it feels like it shouldn't take too long if I just sit down and do it. |
With this diff: diff --git a/gvfs-helper.c b/gvfs-helper.c
index e8e6fbbdd9f3..bddc99174b4c 100644
--- a/gvfs-helper.c
+++ b/gvfs-helper.c
@@ -3603,7 +3603,9 @@ static enum gh__error_code do_sub_cmd__config(int argc, const char **argv)
if (ec == GH__ERROR_CODE__OK)
printf("%s\n", config_data.buf);
else
+{ open_in_gdb();
error("config: %s", status.error_message.buf);
+}
gh__response_status__release(&status);
strbuf_release(&config_data);
@@ -3632,7 +3634,9 @@ static enum gh__error_code do_sub_cmd__endpoint(int argc, const char **argv)
if (ec == GH__ERROR_CODE__OK)
printf("%s\n", data.buf);
else
+{ open_in_gdb();
error("config: %s", status.error_message.buf);
+}
gh__response_status__release(&status);
strbuf_release(&data); I built a local version, then started
I then walked the call stack by issuing Then, I let the program resume by calling
With the diff --git a/gvfs-helper.c b/gvfs-helper.c
index e8e6fbbdd9f3..89c18dbfe6af 100644
--- a/gvfs-helper.c
+++ b/gvfs-helper.c
@@ -3602,7 +3602,7 @@ static enum gh__error_code do_sub_cmd__config(int argc, const char **argv)
if (ec == GH__ERROR_CODE__OK)
printf("%s\n", config_data.buf);
- else
+ else if (ec != GH__ERROR_CODE__HTTP_404)
error("config: %s", status.error_message.buf);
gh__response_status__release(&status);
@@ -3631,7 +3631,7 @@ static enum gh__error_code do_sub_cmd__endpoint(int argc, const char **argv)
if (ec == GH__ERROR_CODE__OK)
printf("%s\n", data.buf);
- else
+ else if (strcmp(endpoint, "vsts/info") || ec != GH__ERROR_CODE__HTTP_404)
error("config: %s", status.error_message.buf);
gh__response_status__release(&status); |
Thanks, let me try to parse and reproduce these steps... |
Was busy all week last week, and tomorrow will be busy too, but I am planning to push a new commit day after tomorrow |
Okay. Please note that I would like you to continue working in this PR branch and continue to target |
This is no longer necessary. |
Meant to address #384. Rebase of #504. Work in progress.
Thanks for taking the time to contribute to Git!
This fork contains changes specific to monorepo scenarios. If you are an
external contributor, then please detail your reason for submitting to
this fork:
GVFS Protocol.