Skip to content

Commit

Permalink
changed error description
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Apr 10, 2015
1 parent 98118e2 commit 8dec319
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checkstyle/checks/TypeCheck.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ class TypeCheck extends Check {
}

function _error(name:String, pos:Position) {
logPos('Missing type: ${name}', pos, Reflect.field(SeverityLevel, severity));
logPos('Type not specified: ${name}', pos, Reflect.field(SeverityLevel, severity));
}
}
Binary file modified run.n
Binary file not shown.
4 changes: 2 additions & 2 deletions test/TypeCheckTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class TypeCheckTest extends CheckTestCase {

public function testClassVar() {
var msg = checkMessage(TypeTests.TEST1, new TypeCheck());
assertEquals(msg, 'Missing type: _a');
assertEquals(msg, 'Type not specified: _a');
}

public function testStaticClassVar() {
var msg = checkMessage(TypeTests.TEST2, new TypeCheck());
assertEquals(msg, 'Missing type: A');
assertEquals(msg, 'Type not specified: A');
}
}

Expand Down

0 comments on commit 8dec319

Please sign in to comment.