summaryrefslogtreecommitdiff
path: root/src/rhimportd/ctrlWatchDir.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-13 21:50:05 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-13 21:50:05 (GMT)
commit8816d31e40ad06f2c634574cf6afbbef11ddbb95 (patch)
tree023f7f976d1df343c04321c48af0018a3701842e /src/rhimportd/ctrlWatchDir.go
parentb828b53ef47cbe22c5e1f8bbe7aaeff51850ea76 (diff)
added normalization step
Diffstat (limited to 'src/rhimportd/ctrlWatchDir.go')
-rw-r--r--src/rhimportd/ctrlWatchDir.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rhimportd/ctrlWatchDir.go b/src/rhimportd/ctrlWatchDir.go
index 6985a74..7b185c0 100644
--- a/src/rhimportd/ctrlWatchDir.go
+++ b/src/rhimportd/ctrlWatchDir.go
@@ -149,6 +149,11 @@ func watchDirHandler(conf *rhimport.Config, db *rddb.DBChan, ctx *rhimport.Conte
return
}
+ if err = rhimport.NormalizeFile(ctx); err != nil {
+ watchDirErrorResponse(filename, http.StatusInternalServerError, err.Error(), "")
+ return
+ }
+
if res, err = rhimport.ImportFile(ctx); err != nil {
watchDirErrorResponse(filename, http.StatusInternalServerError, err.Error(), res.SourceFile)
return