From ac6efabee6ecce3a0c70c407c4065db162283363 Mon Sep 17 00:00:00 2001 From: Drew Harris Date: Thu, 30 Jul 2026 11:46:29 -0700 Subject: [PATCH 1/2] log url on info error --- client/packages/cli/src/commands/info.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/packages/cli/src/commands/info.ts b/client/packages/cli/src/commands/info.ts index d091fb0fc2..f7902871c7 100644 --- a/client/packages/cli/src/commands/info.ts +++ b/client/packages/cli/src/commands/info.ts @@ -1,6 +1,6 @@ import { HttpClientResponse } from '@effect/platform'; import { Effect, Schema, Option } from 'effect'; -import { InstantHttpAuthed } from '../lib/http.ts'; +import { getBaseUrl, InstantHttpAuthed } from '../lib/http.ts'; import { version } from '@instantdb/version'; import { CurrentApp } from '../context/currentApp.ts'; @@ -21,6 +21,7 @@ export const DashAppResponse = Schema.Struct({ export const infoCommand = () => Effect.gen(function* () { + const baseUrl = yield* getBaseUrl; const authedHttp = yield* Effect.serviceOption(InstantHttpAuthed).pipe( Effect.map(Option.getOrNull), ); @@ -32,7 +33,10 @@ export const infoCommand = () => const meData = yield* authedHttp.get('/dash/me').pipe( Effect.flatMap(HttpClientResponse.schemaBodyJson(DashMeResponse)), Effect.mapError( - (e) => new Error("Couldn't get user information.", { cause: e }), + (e) => + new Error(`Couldn't get user information (${baseUrl}).`, { + cause: e, + }), ), ); From d7db68d22efaf76e0028db2a4dd338e789e945f3 Mon Sep 17 00:00:00 2001 From: Drew Harris Date: Thu, 30 Jul 2026 13:18:43 -0700 Subject: [PATCH 2/2] bump version to v1.0.55 --- client/packages/version/src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/packages/version/src/version.ts b/client/packages/version/src/version.ts index 968cd9d44b..2ea1c17157 100644 --- a/client/packages/version/src/version.ts +++ b/client/packages/version/src/version.ts @@ -2,6 +2,6 @@ // Update the version here and merge your code to main to // publish a new version of all of the packages to npm. -const version = 'v1.0.54'; +const version = 'v1.0.55'; export { version };