diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-15 18:47:22 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-15 18:47:22 (GMT) |
commit | d33cf1f6738a3c3771247dd29e764c296b806f4c (patch) | |
tree | 288aed9f17e25a6426b5b8f070239f9b9077a0c8 /src/helsinki.at/rhimport/fetcher.go | |
parent | 764c1939b3cf995fd98e4dc27b5709d3b494702b (diff) |
improved error handling and overall resilience to different situations
Diffstat (limited to 'src/helsinki.at/rhimport/fetcher.go')
-rw-r--r-- | src/helsinki.at/rhimport/fetcher.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helsinki.at/rhimport/fetcher.go b/src/helsinki.at/rhimport/fetcher.go index ae7c910..38e1d7f 100644 --- a/src/helsinki.at/rhimport/fetcher.go +++ b/src/helsinki.at/rhimport/fetcher.go @@ -134,6 +134,8 @@ func FetchFileCurl(ctx *ImportContext, uri *url.URL) (err error) { // still: let's make a special configurable directory the local:/// dir // and only allow absolute paths here which will be based on the // 'local' directory +// TODO: also check if file exists and is accessable!!! otherwise curl will blow up +// with a not-easy-to-understand error func FetchFileLocal(ctx *ImportContext, uri *url.URL) (err error) { rhl.Printf("Local fetcher called for '%s'", ctx.SourceUri) if ctx.ProgressCallBack != nil { |