We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d57c1 commit d513380Copy full SHA for d513380
src/main.ts
@@ -79,7 +79,7 @@ async function main() {
79
80
const rootDir = args._[0] || '.';
81
const configPath = path.join(rootDir, 'wokwi.toml');
82
- const diagramFilePath = path.join(rootDir, diagramFile ?? 'diagram.json');
+ const diagramFilePath = path.resolve(rootDir, diagramFile ?? 'diagram.json');
83
const configExists = existsSync(configPath);
84
85
if (!elf && !configExists) {
@@ -88,7 +88,7 @@ async function main() {
88
}
89
90
if (!existsSync(diagramFilePath)) {
91
- console.error(`Error: diagram.json not found in ${path.resolve(rootDir)}`);
+ console.error(`Error: diagram file not found in ${diagramFilePath}`);
92
process.exit(1);
93
94
0 commit comments