aboutsummaryrefslogtreecommitdiff
path: root/internal/webui/webui.go
diff options
context:
space:
mode:
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())
}
}