We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731a072 commit ed642e6Copy full SHA for ed642e6
handler/handler.go
@@ -53,7 +53,11 @@ func (sh *SessionHandler) readConfig() *config {
53
}
54
55
func (sh *SessionHandler) parseConfig(configFile string) (*config, error) {
56
- file, err := os.Open(configFile)
+ path, err := sh.expandPath(configFile)
57
+ if err != nil {
58
+ return nil, fmt.Errorf("failed to expand path: %w", err)
59
+ }
60
+ file, err := os.Open(path)
61
if err != nil {
62
return nil, fmt.Errorf("failed to open config file: %w", err)
63
0 commit comments