diff options
Diffstat (limited to 'src/rhimportd/ctrlTelnet.go')
-rw-r--r-- | src/rhimportd/ctrlTelnet.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go index ae4b8f7..83bb989 100644 --- a/src/rhimportd/ctrlTelnet.go +++ b/src/rhimportd/ctrlTelnet.go @@ -300,9 +300,12 @@ func telnetRun(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.D c.Sayln("") c.Sayln("normalizing file '%s'", ctx.SourceFile) - if err := rhimport.NormalizeFile(ctx); err != nil { + if res, err := rhimport.NormalizeFile(ctx); err != nil { c.Sayln("normalize file error: %s", err) return false + } else if res.ResponseCode != http.StatusOK { + c.Sayln("normalize file error: %s", res.ErrorString) + return false } c.Sayln("") |