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 | c3d7a6f2ea59e75a5e2c3939eea6a5248d9f779a (patch) | |
tree | fd83cc53dc56ff3d677120c78c8257b0f56f9939 /fetcher.go | |
parent | 638d17b5051f80b36ffa641366440b8266eaac4c (diff) |
improved error handling and overall resilience to different situations
Diffstat (limited to 'fetcher.go')
-rw-r--r-- | fetcher.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |