From 7884d34ba23bb541054664e2dff1aeb53c853c7c Mon Sep 17 00:00:00 2001 From: Felicitas Pojtinger Date: Mon, 20 Dec 2021 01:58:34 +0100 Subject: [PATCH] fix: Use new error names in MTIO stubs --- internal/cache/{errors.go => error.go} | 0 internal/mtio/mtio_stub.go | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename internal/cache/{errors.go => error.go} (100%) diff --git a/internal/cache/errors.go b/internal/cache/error.go similarity index 100% rename from internal/cache/errors.go rename to internal/cache/error.go diff --git a/internal/mtio/mtio_stub.go b/internal/mtio/mtio_stub.go index 6ac4c6f..0907640 100644 --- a/internal/mtio/mtio_stub.go +++ b/internal/mtio/mtio_stub.go @@ -9,21 +9,21 @@ import ( ) func GetCurrentRecordFromTape(f *os.File) (int64, error) { - return -1, config.ErrDrivesUnsupported + return -1, config.ErrTapeDrivesUnsupported } func GoToEndOfTape(f *os.File) error { - return config.ErrDrivesUnsupported + return config.ErrTapeDrivesUnsupported } func GoToNextFileOnTape(f *os.File) error { - return config.ErrDrivesUnsupported + return config.ErrTapeDrivesUnsupported } func EjectTape(f *os.File) error { - return config.ErrDrivesUnsupported + return config.ErrTapeDrivesUnsupported } func SeekToRecordOnTape(f *os.File, record int32) error { - return config.ErrDrivesUnsupported + return config.ErrTapeDrivesUnsupported }