Skip to content

Commit 0ad59b9

Browse files
authored
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.
1 parent 9ebdaac commit 0ad59b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/applet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func (a *Applet) ensureLoaded(fsys fs.FS, pathToLoad string, currentlyLoading ..
409409
Recursion: true,
410410
},
411411
thread,
412-
a.ID,
412+
path.Join(a.ID, pathToLoad),
413413
src,
414414
predeclared,
415415
)

0 commit comments

Comments
 (0)