fs: adds string for better error experience (#1042)
This prepares for pseudo-root when the CLI doesn't provide one by improving the error messages in general, as well being consistent about parameter order. Signed-off-by: Adrian Cole <adrian@tetrate.io> Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -45,7 +45,7 @@ func Test_testfs(t *testing.T) {
|
||||
require.NoError(t, os.Mkdir(testfsDir, 0o700))
|
||||
require.NoError(t, fstest.WriteTestFiles(testfsDir))
|
||||
|
||||
rootFS, err := syscallfs.NewDirFS("/", tmpDir)
|
||||
rootFS, err := syscallfs.NewDirFS(tmpDir, "/")
|
||||
require.NoError(t, err)
|
||||
|
||||
stdout, stderr, err := compileAndRun(testCtx, "testfs", wazero.NewModuleConfig().WithFS(rootFS))
|
||||
|
||||
Reference in New Issue
Block a user