1
0
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:
Anand Babu (AB) Periasamy
2015-08-24 12:55:11 -07:00
parent 3d69860b5e
commit 831db52dcf
12 changed files with 51 additions and 45 deletions

View File

@@ -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 {