Skip to content

Commit

Permalink
[preprocessor/folder] fix invalid error status in proofmode parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jun 17, 2024
1 parent e611e2e commit bd42c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preprocessor/folder/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func handleNewFile(pgPool *pgxpool.Pool, filePath string, project *ProjectQueryR
}
cid = resp.Cid
} else {
if err := setFileStatusError(pgPool, filePath, err.Error()); err != nil {
if err := setFileStatusError(pgPool, filePath, "Invalid proofmode file"); err != nil {
log.Println("error setting file status to error:", err)
}
return "", fmt.Errorf("file %s not found in zip", fileName)
Expand Down

0 comments on commit bd42c70

Please sign in to comment.