diff options
author | Julien Dessaux | 2021-09-11 12:27:59 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-11 12:27:59 +0200 |
commit | aff4790d22728d89e7e2dac8af262c92087b5b39 (patch) | |
tree | a9e4ccae95529835abb0b18e856f3f40b98c0f8e /pkg/config/error.go | |
parent | Changed the way html pages title is set (diff) | |
download | trains-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 '')
-rw-r--r-- | pkg/config/error.go | 15 |
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, - } -} |