Skip to content

Commit

Permalink
fix: warn when ftlEndpoint property is missing, not error (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell authored Dec 20, 2023
1 parent de04500 commit 972fcd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/ftl/cmd_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ func (b *buildCmd) setPomProperties(logger *log.Logger) error {

endpoint := properties.SelectElement("ftlEndpoint")
if endpoint == nil {
return fmt.Errorf("unable to find <properties>/<ftlEndpoint> in %s", pomFile)
logger.Warnf("unable to find <properties>/<ftlEndpoint> in %s", pomFile)
} else {
endpoint.SetText(ftlEndpoint)
}
endpoint.SetText(ftlEndpoint)

return tree.WriteToFile(pomFile)
}

0 comments on commit 972fcd9

Please sign in to comment.