fix: bad line length character caused by printing to stdout
using stderr instead
This commit is contained in:
parent
03efb7bc24
commit
e334a472b5
2 changed files with 19 additions and 9 deletions
4
store.go
4
store.go
|
|
@ -30,8 +30,8 @@ func getStorePath(customPath string) string {
|
|||
localDataDir := filepath.Join(home, ".local", "share", "gosh")
|
||||
err := os.MkdirAll(localDataDir, 0700)
|
||||
if err != nil {
|
||||
fmt.Println("Warning: Failed to create local data direction '", localDataDir, "': ", err)
|
||||
fmt.Println("Warning: Putting database in current working directory.")
|
||||
fmt.Fprintln(os.Stderr, "Warning: Failed to create local data direction '", localDataDir, "': ", err)
|
||||
fmt.Fprintln(os.Stderr, "Warning: Putting database in current working directory.")
|
||||
return "./keys.json"
|
||||
}
|
||||
return filepath.Join(localDataDir, "keys.json")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue