Skip to content

Indent deprecation warning's userland message #47

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

Closed
wants to merge 21 commits into from

Conversation

chenglou
Copy link
Member

Before it was like:

  deprecated: Belt.List.filterWithIndex
This function will soon be deprecated. Please, use `List.keepWithIndex` instead.

Now it's:

  deprecated: Belt.List.filterWithIndex
  This function will soon be deprecated. Please, use `List.keepWithIndex` instead.

This helps with the visual but also the parsing of the messages.
Without our super errors system, this'll now look like:

deprecated: Belt.List.filterWithIndex
  This function will soon be deprecated. Please, use `List.keepWithIndex` instead.

Which is still tasteful

bobzhang and others added 21 commits March 15, 2021 15:11
Before it was like:

```
  deprecated: Belt.List.filterWithIndex
This function will soon be deprecated. Please, use `List.keepWithIndex` instead.
```

Now it's:

```
  deprecated: Belt.List.filterWithIndex
  This function will soon be deprecated. Please, use `List.keepWithIndex` instead.
```

This helps with the visual but also the parsing of the messages.
Without our super errors system, this'll now look like:

```
deprecated: Belt.List.filterWithIndex
  This function will soon be deprecated. Please, use `List.keepWithIndex` instead.
```

Which is still tasteful
@chenglou chenglou requested a review from bobzhang March 20, 2021 04:36
@chenglou
Copy link
Member Author

chenglou commented Mar 20, 2021

@bobzhang
Copy link
Member

cherry-picked

@bobzhang bobzhang closed this Mar 25, 2021
@chenglou chenglou deleted the se-warning-indentation branch March 25, 2021 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants