1
0
Fork 0
mirror of https://github.com/Luzifer/gpxhydrant.git synced 2024-12-22 20:21:17 +00:00

Fix: Require OSM login

This commit is contained in:
Knut Ahlers 2016-05-07 14:56:37 +02:00
parent 94da651e3c
commit c59c4dfb79
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -44,6 +44,10 @@ func init() {
if cfg.GPXFile == "" { if cfg.GPXFile == "" {
log.Fatalf("gpx-file is a required parameter") log.Fatalf("gpx-file is a required parameter")
} }
if cfg.OSM.Password == "" || cfg.OSM.Username == "" {
log.Fatalf("osm-pass / osm-user are required parameters")
}
} }
func main() { func main() {