Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake usage of quotes in errors consistent #7578
Comments
|
Hey, I would be happy to improve the error messages! |
|
Glad to hear that! We still have to decide on how exactly this should be done, which we probably will do in tomorrows meeting. Feel free to join tomorrow (Wednesday at 15 CET, a link will be posted in gitter) in our google hangout meeting if you want to talk about it. In any case I'll update this issue with the result of the discussion! |
|
Thank you, @Marenz! |
|
Hey @Marenz! Unfortunately I could not join you for the meeting today. Have you been able to reach any agreement on this issue? |
|
Yes. We'd like for all user defined names to be in quotes in all error messages. Sorry I didn't update sooner. |
|
In single or in double quotes? |
|
Double quotes |
|
I was looking into the error messages, and I have also noticed, that a lot of custom defined errors are used. The problem is that I am not totally sure, which exact errors should be changed. Could you, please, provide me with an example of any error that has "user defined names" within it that needs to be updated? |
|
Here are a few examples for you: :)
here no quotes at all are used:
|
|
Hey, @Marenz Is this still left to work upon? I would be glad to contribute. |
|
@kalashshah11 I am going to push an update in a bit with all the updated error messages I could've found |
|
Why not introduce a |
|
Can't we just implement our alternative in 3 lines of code? |
|
Sure, that'd work |
|
When @erak and I talked about it we decided to make it all consistent as a first step and as a second step use a function like that. |
|
Sounds like a lot of extra work |
|
I argued along similar lines and I forgot eraks counter-argument ;) |
|
Well, I think I had no strong opinion on the process ;-) Would agree with @axic here and start using the helper function right away. |
|
What does that mean in regards to the pending PR? |


Our error messages are not consistent regarding the use of quotes, e.g. some quote the function name and contract name, others don't.
We should agree on how we want to do that and make it consistent everywhere.
@erak argues for double quotes
"around all user defined names.I tend to agree.