Skip to content

Commit

Permalink
fix: services json file formatting and fix typos in logs (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 authored Aug 2, 2023
1 parent 2f9d43b commit 8e156db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/commands/chain/types/icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ It establishes a connection to the Icon network and allows the node in executing
diveContext.FatalError("Failed To Write To File", err.Error())
}

diveContext.StopSpinner("Icon Node Started. Please find service details in current working directory(services.json) in current working directory")
diveContext.StopSpinner("Icon Node Started. Please find service details in current working directory(services.json)")

} else {

Expand Down Expand Up @@ -121,7 +121,7 @@ func IconDecentralisationCmd(diveContext *common.DiveContext) *cobra.Command {
diveContext.InitKurtosisContext()
Decentralisation(diveContext, params)

diveContext.StopSpinner(fmt.Sprintln("Decentralisation Completed.Please find service details in dive.json"))
diveContext.StopSpinner(fmt.Sprintln("Decentralisation Completed.Please find service details in services.json"))
},
}
decentralisationCmd.Flags().StringVarP(&serviceName, "serviceName", "s", "", "service name")
Expand Down
5 changes: 3 additions & 2 deletions cli/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ func ReadServiceJsonFile() (Services, error) {
if err != nil {
return nil, err
}

jsonFile, _ := os.ReadFile(pwd + ServiceFilePath)
serviceFile := fmt.Sprintf("%s/%s", pwd, ServiceFilePath)

jsonFile, _ := os.ReadFile(serviceFile)

if len(jsonFile) == 0 {
return nil, nil
Expand Down

0 comments on commit 8e156db

Please sign in to comment.