Skip to content

Commit

Permalink
change failed connection error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Oct 24, 2023
1 parent bd49368 commit 78d84a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user-contracts-mon/internal/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (mon Monitor) StartMonitoring(addChatChan chan User, stopChatChan chan int6
for chatID, user := range users {
tfPluginClient, err := deployer.NewTFPluginClient(user.mnemonic, "sr25519", user.network, "", "", "", 0, true)
if err != nil {
log.Println(err)
log.Println("failed to connect")
mon.sendResponse(err.Error(), chatID)
continue
}
Expand All @@ -107,7 +107,7 @@ func (mon Monitor) StartMonitoring(addChatChan chan User, stopChatChan chan int6
case user := <-addChatChan:
tfPluginClient, err := deployer.NewTFPluginClient(user.mnemonic, "sr25519", user.network, "", "", "", 0, true)
if err != nil {
log.Println(err)
log.Println("failed to connect")
mon.sendResponse(err.Error(), user.ChatID)
continue
}
Expand Down

0 comments on commit 78d84a9

Please # to comment.