Skip to content
Snippets Groups Projects
Commit 38ffa376 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge remote-tracking branch 'origin/release' into dev

parents 3f1ffda7 4b41e785
No related branches found
No related tags found
2 merge requests!50Revert "update deps",!48Release
......@@ -48,8 +48,8 @@ func InitParams(vip *viper.Viper) params.General {
// Only require proto user path if session does not exist
var protoUserJson []byte
protoUserPath := ""
if sessionPath == "" {
jww.INFO.Printf("Session file-path was not specified, attempting to load proto client file...")
if sessionPath == "" || !utils.Exists(sessionPath) {
jww.INFO.Printf("Session file-path was not specified or does not exist, attempting to load proto client file...")
protoUserPath, err = utils.ExpandPath(viper.GetString("protoUserPath"))
if err != nil {
jww.FATAL.Fatalf("Failed to read proto path: %+v", err)
......
......@@ -104,7 +104,7 @@ var rootCmd = &cobra.Command{
// Pass NDF directly into client library
var client *api.Client
if p.SessionPath != "" {
if p.SessionPath != "" && utils.Exists(p.SessionPath) {
client, err = api.LoginWithNewBaseNDF_UNSAFE(p.SessionPath,
[]byte(sessionPass), string(returnedNdf.GetNdf()),
params.GetDefaultNetwork())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment