mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
cli: add error return check for compiler.CompileAndInspect()
GolangCI complains: Error return value of compiler.CompileAndInspect is not checked (from errcheck)
This commit is contained in:
parent
2daebdfce2
commit
01330e7ed7
1 changed files with 3 additions and 1 deletions
|
@ -254,6 +254,8 @@ func inspect(ctx *cli.Context) error {
|
|||
if len(src) == 0 {
|
||||
return cli.NewExitError(errNoInput, 1)
|
||||
}
|
||||
compiler.CompileAndInspect(src)
|
||||
if err := compiler.CompileAndInspect(src); err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue