Skip to content

Commit 7d47575

Browse files
committed
fix: drawPal error messages
1 parent 94252fa commit 7d47575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ func (c *Compiler) expValue(out *BytecodeExp, in *string,
21102110
case "index":
21112111
out.append(OC_ex2_, OC_ex2_drawpal_index)
21122112
default:
2113-
return bvNone(), Error(fmt.Sprint("Invalid argument: %s", c.token))
2113+
return bvNone(), Error("Invalid data: " + c.token)
21142114
}
21152115
case "explodvar":
21162116
if err := c.checkOpeningBracket(in); err != nil {
@@ -2147,7 +2147,7 @@ func (c *Compiler) expValue(out *BytecodeExp, in *string,
21472147
case "index":
21482148
opc = OC_ex2_explodvar_drawpal_index
21492149
default:
2150-
return bvNone(), Error(fmt.Sprint("Invalid argument: %s", c.token))
2150+
return bvNone(), Error("Invalid data: " + c.token)
21512151
}
21522152
case "removetime":
21532153
opc = OC_ex2_explodvar_removetime
@@ -3056,7 +3056,7 @@ func (c *Compiler) expValue(out *BytecodeExp, in *string,
30563056
case "index":
30573057
opc = OC_ex2_projvar_drawpal_index
30583058
default:
3059-
return bvNone(), Error(fmt.Sprint("Invalid argument: %s", c.token))
3059+
return bvNone(), Error("Invalid data: " + c.token)
30603060
}
30613061
case "pausemovetime":
30623062
opc = OC_ex2_projvar_pausemovetime

0 commit comments

Comments
 (0)