diff options
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, - } -} |