1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-30 04:30:51 +02:00

fix parseWriteMode return

This commit is contained in:
3timeslazy 2019-10-21 18:35:35 +03:00
parent 892915c58d
commit 2b3a82d720

View File

@ -144,7 +144,7 @@ func parseWriteMode(s string) (int, error) {
flag |= os.O_TRUNC
default:
return 0, core.Errorf(
return -1, core.Errorf(
core.ErrInvalidArgument,
"invalid mode `%s`", s,
)