Skip to content

Commit ebeeb0f

Browse files
MikaelMayershigoel
authored andcommitted
Fix missing s! interpolation prefix in Python.lean error message
Without s!, "{pythonCmd}" prints as a literal string instead of interpolating the variable. Same pattern as commit 729a4174b (Fix #1244). Carried to main2 via merge #1311.
1 parent c44880b commit ebeeb0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StrataPythonTest/Util/Python.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def pythonCheckModule (pythonCmd : System.FilePath) (moduleName : String) : IO B
105105
| 1 =>
106106
return false
107107
| 255 =>
108-
throw <| .userError "{pythonCmd} not found."
108+
throw <| .userError s!"{pythonCmd} not found."
109109
| _ =>
110110
throw <| .userError
111111
s!"{pythonCmd} has unexpected exit code {exitCode}"

0 commit comments

Comments
 (0)