Skip to content

Commit 8d4d586

Browse files
drew-512sbinet
andauthored
Update modules/runtime.go
Co-authored-by: Sebastien Binet <binet@cern.ch>
1 parent 06a2eae commit 8d4d586

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (ctx *ctx) ResolveAndCompile(pathname string, opts py.CompileOpts) (py.Comp
137137
var file *os.File
138138
file, err = os.Open(fpath)
139139
if err != nil {
140-
return false, py.ExceptionNewf(py.OSError, "Error opening %q: %v", fpath, err)
140+
return false, py.ExceptionNewf(py.OSError, "Error opening %q: %w", fpath, err)
141141
}
142142
defer file.Close()
143143
codeObj, err := marshal.ReadPyc(file)

0 commit comments

Comments
 (0)