@@ -95,7 +95,7 @@ func loadRelays(file string) []eb.Relay {
9595 err := codecs .LoadObjectFromFile (file , & relays )
9696 if err != nil {
9797 err = fmt .Errorf ("Unable to load relays file - %v" , err )
98- panic (makeExitError (1 , "%s" , err .Error ()))
98+ panic (makeExitError (1 , err .Error ()))
9999 }
100100 return relays
101101}
@@ -126,27 +126,27 @@ func makeDNSContext() *dnsContext {
126126
127127 nameZoneID , err := cloudflareCred .GetZoneID (context .Background (), nameDomainArg )
128128 if err != nil {
129- panic (makeExitError (1 , "%s" , err .Error ()))
129+ panic (makeExitError (1 , err .Error ()))
130130 }
131131
132132 nameEntries , err := getReverseMappedEntries (nameZoneID , nameRecordTypes )
133133 if err != nil {
134- panic (makeExitError (1 , "%s" , err .Error ()))
134+ panic (makeExitError (1 , err .Error ()))
135135 }
136136
137137 srvZoneID , err := cloudflareCred .GetZoneID (context .Background (), srvDomainArg )
138138 if err != nil {
139- panic (makeExitError (1 , "%s" , err .Error ()))
139+ panic (makeExitError (1 , err .Error ()))
140140 }
141141
142142 bootstrap , err := getSrvRecords ("_algobootstrap" , dnsBootstrapArg + "." + srvDomainArg , srvZoneID )
143143 if err != nil {
144- panic (makeExitError (1 , "%s" , err .Error ()))
144+ panic (makeExitError (1 , err .Error ()))
145145 }
146146
147147 metrics , err := getSrvRecords ("_metrics" , srvDomainArg , srvZoneID )
148148 if err != nil {
149- panic (makeExitError (1 , "%s" , err .Error ()))
149+ panic (makeExitError (1 , err .Error ()))
150150 }
151151
152152 return & dnsContext {
@@ -585,7 +585,7 @@ func getSrvRecords(serviceName string, networkName, zoneID string) (service srvS
585585 var port64 uint64
586586 port64 , err = strconv .ParseUint (portString , 10 , 16 )
587587 if err != nil {
588- panic (makeExitError (1 , "Invalid SRV Port for %s: %s" , target , portString ))
588+ panic (makeExitError (1 , fmt . Sprintf ( "Invalid SRV Port for %s: %s" , target , portString ) ))
589589 }
590590 port := uint16 (port64 )
591591
0 commit comments