File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,14 @@ async function main() {
104
104
const configExists = existsSync ( configPath ) ;
105
105
106
106
if ( ! elf && ! configExists ) {
107
- console . error ( `Error: wokwi.toml not found in ${ path . resolve ( rootDir ) } ` ) ;
107
+ console . error ( `Error: wokwi.toml not found in ${ path . resolve ( rootDir ) } .` ) ;
108
+ console . error ( 'Run `wokwi-cli init` to automatically create a wokwi.toml file.' ) ;
108
109
process . exit ( 1 ) ;
109
110
}
110
111
111
112
if ( ! existsSync ( diagramFilePath ) ) {
112
113
console . error ( `Error: diagram file not found in ${ diagramFilePath } ` ) ;
114
+ console . error ( 'Run `wokwi-cli init` to automatically create a diagram.json file.' ) ;
113
115
process . exit ( 1 ) ;
114
116
}
115
117
@@ -132,11 +134,13 @@ async function main() {
132
134
133
135
if ( ! existsSync ( firmwarePath ) ) {
134
136
console . error ( `Error: firmware file not found: ${ path . resolve ( firmwarePath ) } ` ) ;
137
+ console . error ( 'Please check the firmware path in your wokwi.toml configuration file.' ) ;
135
138
process . exit ( 1 ) ;
136
139
}
137
140
138
141
if ( ! existsSync ( elfPath ) ) {
139
142
console . error ( `Error: ELF file not found: ${ path . resolve ( elfPath ) } ` ) ;
143
+ console . error ( 'Please check the ELF path in your wokwi.toml configuration file.' ) ;
140
144
process . exit ( 1 ) ;
141
145
}
142
146
You can’t perform that action at this time.
0 commit comments