Skip to content

Commit a7ce4bb

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

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
@@ -125,7 +125,7 @@ func (ctx *ctx) ResolveAndCompile(pathname string, opts py.CompileOpts) (py.Comp
125125
var pySrc []byte
126126
pySrc, err = ioutil.ReadFile(fpath)
127127
if err != nil {
128-
return false, py.ExceptionNewf(py.OSError, "Error reading %q: %v", fpath, err)
128+
return false, py.ExceptionNewf(py.OSError, "Error reading %q: %w", fpath, err)
129129
}
130130

131131
out.Code, err = py.Compile(string(pySrc), fpath, py.ExecMode, 0, true)

0 commit comments

Comments
 (0)