aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/error.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-11 12:27:59 +0200
committerJulien Dessaux2021-09-11 12:27:59 +0200
commitaff4790d22728d89e7e2dac8af262c92087b5b39 (patch)
treea9e4ccae95529835abb0b18e856f3f40b98c0f8e /pkg/config/error.go
parentChanged the way html pages title is set (diff)
downloadtrains-aff4790d22728d89e7e2dac8af262c92087b5b39.tar.gz
trains-aff4790d22728d89e7e2dac8af262c92087b5b39.tar.bz2
trains-aff4790d22728d89e7e2dac8af262c92087b5b39.zip
Piece evry last week changes together in a big rewrite of the webui
Diffstat (limited to 'pkg/config/error.go')
-rw-r--r--pkg/config/error.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/config/error.go b/pkg/config/error.go
index 41a323c..c49b6a9 100644
--- a/pkg/config/error.go
+++ b/pkg/config/error.go
@@ -90,18 +90,3 @@ func newInvalidTokenError(token string) error {
token: token,
}
}
-
-// Invalid trainStop field error
-type InvalidTrainStopError struct {
- trainStop string
-}
-
-func (e *InvalidTrainStopError) Error() string {
- return fmt.Sprintf("Invalid trainStop %s : it must be a string that lookslike \"stop_area:SNCF:87723502\" (make sure to quote the string because of the colon characters)", e.trainStop)
-}
-
-func newInvalidTrainStopError(trainStop string) error {
- return &InvalidTrainStopError{
- trainStop: trainStop,
- }
-}