String cid = chunkid(source.toString()); // TODO: get source name from source
L.pushfstring(cid + ":" + linenumber + ": " + msg);
if (token != 0) {
L.pushfstring("syntax error: " + msg + " near " + txtToken(token));
}
<BUG>throw new LuaError(cid + ":" + linenumber + ": " + msg);
</BUG>
}
String chunkid(String source) {
if (source.startsWith("=")) {

String cid = chunkid(source.toString()); // TODO: get source name from source
L.pushfstring(cid + ":" + linenumber + ": " + msg);
if (token != 0) {
L.pushfstring("syntax error: " + msg + " near " + txtToken(token));
}
return new LuaError(cid + ":" + linenumber + ": " + msg);
}
String chunkid(String source) {
if (source.startsWith("=")) {
