@alpic80/rivet-cli 1.24.0-aidon.11 → 1.24.0-aidon.12

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.
@@ -158,6 +158,9 @@ export async function serve(cliArgs = {}) {
158
158
  app.get('/health', async (c) => c.text('Healthy like Popeye'));
159
159
  app.post('/', async (c) => {
160
160
  if (args.projectsRootDir) {
161
+ if (args.logActivity) {
162
+ console.error(chalk.red('Status 400 - Configured with projects-root-dir which requires a project file to be specified in URL,'));
163
+ }
161
164
  return c.text('Configured with projects-root-dir which requires a project file to be specified in URL', 400);
162
165
  }
163
166
  const project = args.dev ? await loadProjectFromFile(projectFilePath) : initialProject;
@@ -186,10 +189,16 @@ export async function serve(cliArgs = {}) {
186
189
  let project;
187
190
  if (args.projectsRootDir) {
188
191
  if (!graphFile) {
192
+ if (args.logActivity) {
193
+ console.error(chalk.red('Status 400 - A graphFile is required when specifying projects-root-dir,'));
194
+ }
189
195
  return c.text('A graphFile is required when specifying projects-root-dir', 400);
190
196
  }
191
197
  const fileMissing = await testIfMissingFile(path.join(args.projectsRootDir, graphFile));
192
198
  if (fileMissing) {
199
+ if (args.logActivity) {
200
+ console.error(chalk.red(`GraphFile ${graphFile} not found in root directory (${args.projectsRootDir})`));
201
+ }
193
202
  return c.text(`GraphFile ${graphFile} not found in root directory (${args.projectsRootDir})`, 400);
194
203
  }
195
204
  project = await loadProjectFromFile(path.join(args.projectsRootDir, graphFile));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@alpic80/rivet-cli",
3
3
  "license": "MIT",
4
4
  "repository": "https://github.com/castortech/rivet",
5
- "version": "1.24.0-aidon.11",
5
+ "version": "1.24.0-aidon.12",
6
6
  "src": "bin/cli.ts",
7
7
  "bin": {
8
8
  "rivet": "bin/cli.js"