Skip to content

Commit 94e8dbf

Browse files
committed
feat(playground): better add to dashboard error messages
1 parent 545a020 commit 94e8dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-playground/src/DashboardSource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class DashboardSource {
7373
parse(sourceFiles) {
7474
this.appFile = sourceFiles.find(f => f.fileName.indexOf('src/App.js') !== -1);
7575
if (!this.appFile) {
76-
throw new Error(`src/App.js file not found. Can't parse dashboard app.`);
76+
throw new Error(`src/App.js file not found. Can't parse dashboard app. Please delete dashboard-app directory and try to create it again.`);
7777
}
7878
this.appAst = parse(this.appFile.content, {
7979
sourceFilename: this.appFile.fileName,
@@ -125,7 +125,7 @@ class DashboardSource {
125125
});
126126
}
127127
if (!this.appClass) {
128-
throw new Error(`App class not found. Can't parse dashboard app.`);
128+
throw new Error(`App class not found. Can't parse dashboard app. Please delete dashboard-app directory and try to create it again.`);
129129
}
130130
}
131131

0 commit comments

Comments
 (0)