cmd: remove legacy NoMatchError

This commit is contained in:
Christian Schwarz
2017-09-02 12:40:22 +02:00
parent 70258fbada
commit 7e442ea0ea
3 changed files with 11 additions and 10 deletions

View File

@ -84,7 +84,11 @@ func doTestDatasetMapFilter(cmd *cobra.Command, args []string) {
log.Printf("error evaluating mapping: %s", err)
os.Exit(1)
}
log.Printf("%s => %s", ip.ToString(), res.ToString())
toStr := "NO MAPPING"
if res != nil {
toStr = res.ToString()
}
log.Printf("%s => %s", ip.ToString(), toStr)
}