diff pkg/wfs/global.go @ 4990:16259efa828f

Dont try to download from WFS if they dont have features.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 05 Mar 2020 17:56:08 +0100
parents 04876d865528
children 5f47eeea988d
line wrap: on
line diff
--- a/pkg/wfs/global.go	Thu Mar 05 14:05:45 2020 +0100
+++ b/pkg/wfs/global.go	Thu Mar 05 17:56:08 2020 +0100
@@ -15,7 +15,6 @@
 
 import (
 	"bufio"
-	"errors"
 	"fmt"
 	"io"
 	"io/ioutil"
@@ -114,7 +113,7 @@
 func (gmd GMLDownloader) Download(user, password string, handler func(string, io.Reader) error) error {
 
 	if len(gmd) == 0 {
-		return errors.New("nothing to download")
+		return nil
 	}
 
 	tmpDir := config.TmpDir()