Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure "cause" is rendered in Data.Error output #3188

Merged
merged 1 commit into from
Jul 7, 2024
Merged

Conversation

tim-smart
Copy link
Member

No description provided.

Copy link

changeset-bot bot commented Jul 6, 2024

🦋 Changeset detected

Latest commit: 6e9edd4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 29 packages
Name Type
effect Minor
@effect/cli Major
@effect/cluster-browser Major
@effect/cluster-node Major
@effect/cluster-workflow Major
@effect/cluster Major
@effect/experimental Major
@effect/opentelemetry Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc-http Major
@effect/rpc Major
@effect/schema Major
@effect/sql-drizzle Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-node Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/sql Major
@effect/typeclass Major
@effect/vitest Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot changed the base branch from main to next-minor July 6, 2024 08:21
@tim-smart tim-smart linked an issue Jul 6, 2024 that may be closed by this pull request
@tim-smart
Copy link
Member Author

/snapshot

Copy link
Contributor

github-actions bot commented Jul 6, 2024

Good news @tim-smart, your snapshot has been published!

pnpm add @effect/cli@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/cluster@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/cluster-browser@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/cluster-node@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/cluster-workflow@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add effect@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/experimental@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/opentelemetry@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/platform@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/platform-browser@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/platform-bun@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/platform-node@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/platform-node-shared@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/printer@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/printer-ansi@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/rpc@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/rpc-http@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/schema@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-drizzle@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-mssql@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-mysql2@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-pg@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-sqlite-bun@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-sqlite-node@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-sqlite-react-native@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/sql-sqlite-wasm@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/typeclass@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7
pnpm add @effect/vitest@0.0.0-snapshot-6e9edd448c6d82afd40e9d971340ed91efdcfce7

You can review the build log here.

@@ -2174,23 +2174,19 @@ export const causeSquashWith = dual<
// -----------------------------------------------------------------------------

/** @internal */
export const YieldableError: new(message?: string) => Cause.YieldableError = (function() {
export const YieldableError: new(message?: string, options?: ErrorOptions) => Cause.YieldableError = (function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What effect is this change supposed to have? Is it supposed to change the default arguments to a Data.TaggedError for example?

@mikearnaldi mikearnaldi merged commit ba2d183 into next-minor Jul 7, 2024
12 checks passed
@mikearnaldi mikearnaldi deleted the error-cause branch July 7, 2024 09:00
@github-actions github-actions bot mentioned this pull request Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Data.Error/TaggedError swallows cause when logged
3 participants