refactor: Use simpler error messages

This commit is contained in:
Felicitas Pojtinger
2021-12-09 17:48:57 +01:00
parent 20f30d0135
commit bc7793360f
12 changed files with 41 additions and 45 deletions

View File

@@ -112,7 +112,7 @@ func Delete(
}
if len(hdrs) <= i-1 {
return config.ErrMissingTarHeader
return config.ErrTarHeaderMissing
}
*hdr = *hdrs[i-1]

View File

@@ -116,7 +116,7 @@ func Move(
}
if len(hdrs) <= i-1 {
return config.ErrMissingTarHeader
return config.ErrTarHeaderMissing
}
*hdr = *hdrs[i-1]