Skip to content

Commit

Permalink
Merge pull request #340 from DevChanQ/main
Browse files Browse the repository at this point in the history
fix: error when loading lua file with modules using the --load flag
  • Loading branch information
twilson63 authored Sep 20, 2024
2 parents fbf57ed + db18924 commit ab1cb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ async function connect(jwk, id) {
}

async function handleLoadArgs(jwk, id) {
const loadCode = checkLoadArgs().map(f => `.load ${f}`).map(load).join('\n')
const loadCode = checkLoadArgs().map(f => `.load ${f}`).map(line => load(line)[0]).join('\n')
if (loadCode) {
const spinner = ora({
spinner: 'dots',
Expand Down

0 comments on commit ab1cb68

Please sign in to comment.