mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
helpers: Improve error message
This commit is contained in:
parent
0be906a92f
commit
8ad9f88993
@ -118,7 +118,10 @@ func SetupTarTestFixture(t testing.TB, outputDir, tarFile string) {
|
|||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
||||||
OK(t, cmd.Run())
|
err = cmd.Run()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("running command %v %v failed: %v", cmd.Path, cmd.Args, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Env creates a test environment and extracts the repository fixture.
|
// Env creates a test environment and extracts the repository fixture.
|
||||||
|
Loading…
Reference in New Issue
Block a user