Skip to content
Snippets Groups Projects
Commit 8cb059f4 authored by Jonah Husson's avatar Jonah Husson
Browse files

Actually read proto user file

parent 39c4c652
No related branches found
No related tags found
1 merge request!2Modify to tell how many coins you have?
Pipeline #34092 passed
...@@ -106,6 +106,11 @@ var rootCmd = &cobra.Command{ ...@@ -106,6 +106,11 @@ var rootCmd = &cobra.Command{
jww.FATAL.Panicf("Failed to initialize client: %+v", err) jww.FATAL.Panicf("Failed to initialize client: %+v", err)
} }
} else if useProto { } else if useProto {
protoUserJson, err = utils.ReadFile(protoUserPath)
if err != nil {
jww.FATAL.Fatalf("Failed to read proto user at %s: %+v", protoUserPath, err)
}
// If the session does not exist but we have a proto file // If the session does not exist but we have a proto file
// Log in using the protofile (attempt to rebuild session) // Log in using the protofile (attempt to rebuild session)
cl, err = api.LoginWithProtoClient(sessionPath, cl, err = api.LoginWithProtoClient(sessionPath,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment