File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 25
25
* [ \# 1231] ( https://github.com/cosmos/relayer/pull/1231 ) Reduce get bech32 prefix when get signer.
26
26
* [ \# 1302] ( https://github.com/cosmos/relayer/pull/1302 ) Avoid packet get relayed when estimated gas is higher than max gas.
27
27
* [ \# 1303] ( https://github.com/cosmos/relayer/pull/1303 ) Add missing max gas amount on txf to avoid estimate less gas when simualte runTx.
28
+ * [ \# 1325] ( https://github.com/cosmos/relayer/pull/1325 ) Ignore only file not exist error when loadConfigFile.
28
29
29
30
## v0.9.3
30
31
Original file line number Diff line number Diff line change 6
6
"errors"
7
7
"fmt"
8
8
"io"
9
+ "io/fs"
9
10
"os"
10
11
"path"
11
12
@@ -40,7 +41,10 @@ func (a *appState) loadConfigFile(ctx context.Context) error {
40
41
41
42
if _ , err := os .Stat (cfgPath ); err != nil {
42
43
// don't return error if file doesn't exist
43
- return nil
44
+ if errors .Is (err , fs .ErrNotExist ) {
45
+ err = nil
46
+ }
47
+ return err
44
48
}
45
49
46
50
// read the config file bytes
You can’t perform that action at this time.
0 commit comments