This commit is contained in:
Shreyas Goenka 2025-03-05 16:00:28 +01:00
parent a2825ca89a
commit a652b449cb
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func (l *logger) setExecutionContext(ec protos.ExecutionContext) {
func Upload(ctx context.Context, cfg *config.Config) error {
l := fromContext(ctx)
if len(l.logs) == 0 {
return fmt.Errorf("no logs to upload")
return errors.New("no logs to upload")
}
protoLogs := make([]string, len(l.logs))