fix: improve codersdk error messages when not JSON (#4495)

This commit is contained in:
Dean Sheather
2022-10-21 23:36:31 +00:00
committed by GitHub
parent 7bc5b89f7a
commit d0fb054a55
4 changed files with 233 additions and 11 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ func ProvisionerJob(ctx context.Context, writer io.Writer, opts ProvisionerJobOp
logs, closer, err := opts.Logs()
if err != nil {
return xerrors.Errorf("logs: %w", err)
return xerrors.Errorf("begin streaming logs: %w", err)
}
defer closer.Close()