Permalink
Browse files

mapserver: do not err for unsupported transform functions (backwards …

…compat)
  • Loading branch information...
olt committed Nov 14, 2018
1 parent b360f54 commit 70ccb049d7e2d0da1c5a10ef3ea37eac30cd142b
Showing with 3 additions and 1 deletion.
  1. +3 −1 builder/mapserver/transform.go
@@ -2,6 +2,7 @@ package mapserver
import (
"fmt"
"log"
"regexp"
"strconv"
)
@@ -32,7 +33,8 @@ func parseTransform(transform string) (transformation, error) {
case "scale":
tr.scale, _ = strconv.ParseFloat(match[2], 64)
default:
return tr, fmt.Errorf("unsupported transform function %q in %q", match[1], transform)
// TODO proper error handling
log.Println(fmt.Errorf("unsupported transform function %q in %q", match[1], transform))
}
}
return tr, nil

0 comments on commit 70ccb04

Please sign in to comment.