mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-12 23:32:15 +02:00
chore(all): review error wrappings
- remove repetitive `cannot` and `failed` prefixes - rename `unmarshaling` to `decoding`
This commit is contained in:
@@ -40,7 +40,7 @@ func Test_Tun(t *testing.T) {
|
||||
// Create TUN device fail as file exists
|
||||
err = tun.Create(path)
|
||||
require.Error(t, err)
|
||||
require.Equal(t, "cannot create TUN device file node: file exists", err.Error())
|
||||
require.EqualError(t, err, "creating TUN device file node: file exists")
|
||||
|
||||
// Remove simple file
|
||||
err = os.Remove(path)
|
||||
|
||||
Reference in New Issue
Block a user