mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +02:00
13 lines
298 B
Go
13 lines
298 B
Go
package fixtures
|
|
|
|
import (
|
|
pkgErrors "github.com/pkg/errors"
|
|
)
|
|
|
|
// Check for the error strings themselves.
|
|
|
|
func errorsStrings(x int) error {
|
|
var err error
|
|
return pkgErrors.Wrap(err, "This %d is too low") // MATCH /error strings should not be capitalized or end with punctuation or a newline/
|
|
}
|