mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
thread-safe typed errors
This commit is contained in:
@@ -23,9 +23,15 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
errDummy = probe.NewError(errors.New("")).Untrace()
|
||||
errInvalidArgument = probe.NewError(errors.New("Invalid arguments provided, cannot proceed.")).Untrace()
|
||||
errSourceListEmpty = probe.NewError(errors.New("Source argument list is empty.")).Untrace()
|
||||
errDummy = func() *probe.Error {
|
||||
return probe.NewError(errors.New("")).Untrace()
|
||||
}
|
||||
errInvalidArgument = func() *probe.Error {
|
||||
return probe.NewError(errors.New("Invalid arguments provided, cannot proceed.")).Untrace()
|
||||
}
|
||||
errSourceListEmpty = func() *probe.Error {
|
||||
return probe.NewError(errors.New("Source argument list is empty.")).Untrace()
|
||||
}
|
||||
)
|
||||
|
||||
type eInvalidGlobURL struct {
|
||||
|
||||
Reference in New Issue
Block a user