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:
parent
892915c58d
commit
2b3a82d720
@ -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,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user