summaryrefslogtreecommitdiff
path: root/src/texec/libtnsl.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/texec/libtnsl.go')
-rw-r--r--src/texec/libtnsl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go
index c881cea..1d36892 100644
--- a/src/texec/libtnsl.go
+++ b/src/texec/libtnsl.go
@@ -128,7 +128,7 @@ func tfile_write(file, in *TVariable) {
b[0] = (in.Data).(byte)
} else {
(file.Data).(*os.File).Close()
- panic(fmt.Sprintf("Failed to write to file, attempted to use unsupported type (%v)\n", out.Type))
+ panic(fmt.Sprintf("Failed to write to file, attempted to use unsupported type (%v)\n", in.Type))
}
(file.Data).(*os.File).Write(b)
}