Skip to content
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

service/dap: fix error string format #2549

Merged
merged 3 commits into from
Jun 23, 2021
Merged

Conversation

suzmue
Copy link
Contributor

@suzmue suzmue commented Jun 23, 2021

Fix style issues that are causing tests to fail (See #2524)

aarzilli
aarzilli previously approved these changes Jun 23, 2021
@@ -614,7 +614,7 @@ func traceCmd(cmd *cobra.Command, args []string) {
}

func isBreakpointExistsErr(err error) bool {
return strings.Contains(err.Error(), "Breakpoint exists")
return strings.Contains(err.Error(), "breakpoint exists")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should change this, the JSON-RPC API returns strings for errors and older clients may be relying on this formatting.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I reverted the changes that are not in delve dap.

@aarzilli aarzilli self-requested a review June 23, 2021 17:24
@aarzilli aarzilli merged commit 0b38b5d into go-delve:master Jun 23, 2021
@suzmue suzmue deleted the deepsource branch June 23, 2021 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants