aboutsummaryrefslogtreecommitdiff
path: root/internal/webui/webui.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-17 10:32:27 +0200
committerJulien Dessaux2021-09-17 10:32:27 +0200
commit155272947c2e379692b07e3ca3902119ffcc897a (patch)
tree6a42126a8563a19624a946f13e929458e5287664 /internal/webui/webui.go
parentRewrote navitia_api_client tests for consistency (diff)
downloadtrains-155272947c2e379692b07e3ca3902119ffcc897a.tar.gz
trains-155272947c2e379692b07e3ca3902119ffcc897a.tar.bz2
trains-155272947c2e379692b07e3ca3902119ffcc897a.zip
Updated dependencies
Diffstat (limited to 'internal/webui/webui.go')
-rw-r--r--internal/webui/webui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/webui/webui.go b/internal/webui/webui.go
index 63173c6..8685df5 100644
--- a/internal/webui/webui.go
+++ b/internal/webui/webui.go
@@ -26,7 +26,7 @@ func Run(c *config.Config, dbEnv *database.DBEnv) {
if stops, err := e.navitia.GetStops(); err == nil {
log.Printf("Updated trains stops data from navitia api, got %d results", len(stops))
if err = dbEnv.ReplaceAndImportStops(stops); err != nil {
- if dberr, ok := err.(*database.QueryError); ok {
+ if dberr, ok := err.(database.QueryError); ok {
log.Printf("%+v", dberr.Unwrap())
}
}