зеркало из https://github.com/mozilla/mig.git
[easy/up-for-grabs] Add additional line for unknown investigator, fixes #235
This commit is contained in:
Родитель
110614c421
Коммит
ade8e80d0a
|
@ -513,7 +513,12 @@ func startRoutines(ctx *Context) (err error) {
|
||||||
for msg := range ctx.Channels.NewCommand {
|
for msg := range ctx.Channels.NewCommand {
|
||||||
err = parseCommands(ctx, msg)
|
err = parseCommands(ctx, msg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log := mig.Log{Desc: fmt.Sprintf("%v", err)}.Err()
|
var log mig.Log
|
||||||
|
if strings.Contains(err.Error(), "signature made by unknown entity") {
|
||||||
|
log = mig.Log{Desc: fmt.Sprintf("%v \n Action rejected -- sent by unknown investigator.", err)}.Err()
|
||||||
|
} else {
|
||||||
|
log = mig.Log{Desc: fmt.Sprintf("%v", err)}.Err()
|
||||||
|
}
|
||||||
ctx.Channels.Log <- log
|
ctx.Channels.Log <- log
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -991,4 +996,5 @@ func printConfigSettings() {
|
||||||
fmt.Println("HEARTBEATFREQ : ", HEARTBEATFREQ)
|
fmt.Println("HEARTBEATFREQ : ", HEARTBEATFREQ)
|
||||||
fmt.Println("MODULETIMEOUT : ", MODULETIMEOUT)
|
fmt.Println("MODULETIMEOUT : ", MODULETIMEOUT)
|
||||||
fmt.Println("ONLYVERIFYPUBKEY : ", ONLYVERIFYPUBKEY)
|
fmt.Println("ONLYVERIFYPUBKEY : ", ONLYVERIFYPUBKEY)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче