mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 09:33:47 +01:00
fix: restore Node deployment and keep Go on its branch
This commit is contained in:
1 parent
1983441c68
commit
bff2e343fd
602 files changed
+92
-1026486
No files matched your search
@@ -1,19 +0,0 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
"github.com/tdurieux/anonymous_github/backend/internal/anonymize"
|
||||
)
|
||||
|
||||
func transformFailure(err error) error {
|
||||
var input *anonymize.InputError
|
||||
if errors.As(err, &input) {
|
||||
if errors.Is(err, io.ErrUnexpectedEOF) {
|
||||
return fail("storage_write_size_mismatch", 502)
|
||||
}
|
||||
return fail("file_not_available", 502)
|
||||
}
|
||||
return fail("anonymization_failed", 422)
|
||||
}
|
||||
Reference in new issue
Block a user