feat: include exe and updated filepath
This commit is contained in:
BIN
wacc-compiler
Executable file
BIN
wacc-compiler
Executable file
Binary file not shown.
@@ -40,7 +40,7 @@ function generateErrors(code, filePath) {
|
|||||||
|
|
||||||
let output;
|
let output;
|
||||||
try {
|
try {
|
||||||
const waccExePath = `${__dirname}/wacc-compiler`;
|
const waccExePath = `${__dirname}/../wacc-compiler`;
|
||||||
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' });
|
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("Error running compiler");
|
console.log("Error running compiler");
|
||||||
|
|||||||
Reference in New Issue
Block a user