From 0ad59b9f01f462c4cdb87723a27f193eb682d3fc Mon Sep 17 00:00:00 2001 From: Rohan Singh Date: Wed, 24 Apr 2024 15:17:05 -0400 Subject: [PATCH] Provide file name in load errors (#1050) When loading a Starlark file fails with an error, provide the name of the file. Since apps can now contain multiple files, this is necessary for the error message to make sense. --- runtime/applet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/applet.go b/runtime/applet.go index 45f98e74e6..2bac67fe01 100644 --- a/runtime/applet.go +++ b/runtime/applet.go @@ -409,7 +409,7 @@ func (a *Applet) ensureLoaded(fsys fs.FS, pathToLoad string, currentlyLoading .. Recursion: true, }, thread, - a.ID, + path.Join(a.ID, pathToLoad), src, predeclared, )