this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

internal/mod/modload: remove debugging panic with sprintf

I introduced this code two days ago in https://cuelang.org/cl/1195701
and while developing, I had used Sprintf to inspect error values
and panic to loudly surface when they happened in our test suite.

Unfortunately, I forgot the panic and it made it past code review too.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I881d2e6ca2979470d7253b2bab0625644829975e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195847
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Rustam Abdullaev <rustam@cue.works>

-2
-2
internal/mod/modload/tidy.go
··· 181 181 if errors.As(err, &missingErr) { 182 182 err = &ErrModuleNotTidy{Reason: fmt.Sprintf( 183 183 "missing dependency providing package %s", missingErr.Path)} 184 - } else { 185 - panic(fmt.Sprintf("%#v\n", err) + ": " + err.Error()) 186 184 } 187 185 return nil, nil, err 188 186 }