@beastmode-develeap/beastmode 0.1.357 → 0.1.359
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/web/board.html +11 -4
- package/dist/web/build-commit.txt +1 -1
- package/dist/web/build-stamp.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6464,7 +6464,13 @@ function getBoardRoutes(factoryDir) {
|
|
|
6464
6464
|
createdCloneDir = true;
|
|
6465
6465
|
} else if (projectPath) {
|
|
6466
6466
|
resolvedPath = resolve4(projectPath);
|
|
6467
|
-
if (!existsSync16(resolvedPath))
|
|
6467
|
+
if (!existsSync16(resolvedPath)) {
|
|
6468
|
+
const roots = _getAllowedRoots();
|
|
6469
|
+
const rootsHint = roots.length ? ` Valid paths live under: ${roots.join(", ")}.` : "";
|
|
6470
|
+
throw new HttpError(400, {
|
|
6471
|
+
error: `Directory not found: ${resolvedPath}. This path must exist on the BeastMode server (inside the container), not on your local machine. Use \u{1F4C1} Browse to pick a valid directory, or paste a GitHub URL instead.${rootsHint}`
|
|
6472
|
+
});
|
|
6473
|
+
}
|
|
6468
6474
|
} else {
|
|
6469
6475
|
throw new Error("Missing required field: provide either `path` (local) or `github_url` (clone)");
|
|
6470
6476
|
}
|