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

change undefined constructor error message for clarity #3434

shiffman opened this Issue Jun 26, 2015 · 1 comment


None yet
2 participants

shiffman commented Jun 26, 2015

The following code

void setup() {
  Thing t = new Thing();

class Thing {
  Thing(int n) { }

produces two errors:

The constructor sketch_150626b.Thing() is undefined
The function "testFunction()" does not exist

I propose changing the first constructor related error message to:

The constructor Thing() does not exist

I think the full path of the inner class sketch_150626b.Thing(), though accurate, is confusing and unnecessary. And since we're using "does not exist" with functions, we might as well be consistent.

@benfry benfry changed the title from undefined constructor error message to change undefined constructor error message for clarity Jun 26, 2015


This comment has been minimized.

Show comment
Hide comment

Manindra29 Jun 27, 2015


I'll take this one.


Manindra29 commented Jun 27, 2015

I'll take this one.

@Manindra29 Manindra29 closed this in 4c73bd9 Jul 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment