Skip to content

Commit

Permalink
Provide file name in load errors (#1050)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rohansingh authored Apr 24, 2024
1 parent 9ebdaac commit 0ad59b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/applet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 0ad59b9

Please sign in to comment.