mirror of
https://github.com/Luzifer/gpxhydrant.git
synced 2024-11-09 16:00:03 +00:00
Fix: Require OSM login
This commit is contained in:
parent
94da651e3c
commit
c59c4dfb79
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -44,6 +44,10 @@ func init() {
|
|||
if cfg.GPXFile == "" {
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue