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

Capitalized error messages #3956

Merged
merged 5 commits into from Feb 16, 2017

Conversation

Sija
Copy link
Contributor

@Sija Sija commented Jan 30, 2017

This PR changes error messages according to #3944.

@Sija Sija force-pushed the capitalized-error-messages branch 2 times, most recently from a199c95 to af00b80 Compare January 30, 2017 13:14
@asterite
Copy link
Member

Note that capitalizing error message given by the compiler is not correct. Right now with this code:

def foo
  A = 1
end

we get this error:

Syntax error in qux.cr:2: dynamic constant assignment

  A = 1
     ^

With your PR we get:

Syntax error in qux.cr:2: Dynamic constant assignment

  A = 1
     ^

which doesn't read that well (capitalizing after ":" doesn't look good). Compiler message are always non-capitalized because of this reason (check for example errors produced by clang, go or rustc)

I do agree about capitalizing messages of exceptions thrown in the standard library.

@asterite asterite self-requested a review January 30, 2017 20:56
Copy link
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

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

Please don't capitalize error messages produced inside the compiler's source code. Doing it for error messages inside the standard library is OK, though.

@Sija Sija force-pushed the capitalized-error-messages branch 4 times, most recently from 791699a to b81021b Compare February 1, 2017 02:02
@Sija
Copy link
Contributor Author

Sija commented Feb 1, 2017

@asterite Reverted changes made to compiler as requested. CI is hanging due to macOS problems on Travis, while Linux is all green-good.

@Sija Sija force-pushed the capitalized-error-messages branch from b81021b to ba848dd Compare February 4, 2017 20:57
@Sija
Copy link
Contributor Author

Sija commented Feb 7, 2017

@asterite ping? it's ready to 🚢 !

@Sija
Copy link
Contributor Author

Sija commented Feb 15, 2017

@asterite anything more to do here?

@asterite asterite merged commit 1cca554 into crystal-lang:master Feb 16, 2017
@asterite asterite added this to the 0.21.0 milestone Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants