mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
codestyle: fix error string should not be capitalized
This commit is contained in:
parent
d46d679f36
commit
59e3bd2fa9
4 changed files with 5 additions and 5 deletions
|
@ -18,8 +18,8 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
errNoInput = errors.New("No input file was found, specify an input file with the '--in or -i' flag")
|
||||
errNoSmartContractName = errors.New("No name was provided, specify the '--name or -n' flag")
|
||||
errNoInput = errors.New("no input file was found, specify an input file with the '--in or -i' flag")
|
||||
errNoSmartContractName = errors.New("no name was provided, specify the '--name or -n' flag")
|
||||
errFileExist = errors.New("A file with given smart-contract name already exists")
|
||||
)
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ const (
|
|||
decimals = 100000000
|
||||
)
|
||||
|
||||
var errInvalidString = errors.New("Fixed8 must satisfy following regex \\d+(\\.\\d{1,8})?")
|
||||
var errInvalidString = errors.New("fixed8 must satisfy following regex \\d+(\\.\\d{1,8})?")
|
||||
|
||||
// Fixed8 represents a fixed-point number with precision 10^-8.
|
||||
type Fixed8 int64
|
||||
|
|
|
@ -213,7 +213,7 @@ func handleBreak(c *ishell.Context) {
|
|||
}
|
||||
v := getVMFromContext(c)
|
||||
if len(c.Args) != 1 {
|
||||
c.Err(errors.New("Missing parameter <ip>"))
|
||||
c.Err(errors.New("missing parameter <ip>"))
|
||||
}
|
||||
n, err := strconv.Atoi(c.Args[0])
|
||||
if err != nil {
|
||||
|
|
|
@ -87,7 +87,7 @@ func CompileAndSave(src string, o *Options) error {
|
|||
}
|
||||
b, err = Compile(bytes.NewReader(b), o)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error while trying to compile smart contract file: %v", err)
|
||||
return fmt.Errorf("error while trying to compile smart contract file: %v", err)
|
||||
}
|
||||
|
||||
log.Println(hex.EncodeToString(b))
|
||||
|
|
Loading…
Reference in a new issue