Skip to content

Commit ab1cb68

Browse files
authored
Merge pull request #340 from DevChanQ/main
fix: error when loading lua file with modules using the --load flag
2 parents fbf57ed + db18924 commit ab1cb68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ async function connect(jwk, id) {
495495
}
496496

497497
async function handleLoadArgs(jwk, id) {
498-
const loadCode = checkLoadArgs().map(f => `.load ${f}`).map(load).join('\n')
498+
const loadCode = checkLoadArgs().map(f => `.load ${f}`).map(line => load(line)[0]).join('\n')
499499
if (loadCode) {
500500
const spinner = ora({
501501
spinner: 'dots',

0 commit comments

Comments
 (0)