Skip to content

Commit

Permalink
Add temporary personal support while local/remote behavior is undocum…
Browse files Browse the repository at this point in the history
…ented
  • Loading branch information
macneale4 committed May 22, 2023
1 parent 4aeaf71 commit cb8a970
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/cmd/dolt/commands/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,12 @@ func sqlHandleVErrAndExitCode(queryist cli.Queryist, verr errhand.VerboseError,
if _, ok := queryist.(*engine.SqlEngine); !ok {
// We are in a context where we are attempting to connect to a remote database. These errors
// are unstructured, so we add some additional context around them.
msg = fmt.Sprintf("Error connecting to remote database: \"%s\".", msg)
tmpMsg := `You've encountered a new behavior in dolt which is not fully documented yet.
A local dolt server is using your dolt data directory, and in an attempt to service your request, we are attempting to
connect to it. That has failed. You should stop the server, or reach out to @macneale on https://discord.gg/gqr7K4VNKe
for help.`
cli.PrintErrln(tmpMsg)
msg = fmt.Sprintf("A local server is running, and dolt is failing to connect. Error connecting to remote database: \"%s\".\n", msg)
}
cli.PrintErrln(msg)
}
Expand Down

0 comments on commit cb8a970

Please sign in to comment.