| Index: pkg/scheduled_test/lib/src/descriptor/utils.dart
|
| ===================================================================
|
| --- pkg/scheduled_test/lib/src/descriptor/utils.dart (revision 18941)
|
| +++ pkg/scheduled_test/lib/src/descriptor/utils.dart (working copy)
|
| @@ -18,11 +18,11 @@
|
| /// [type] is used for error reporting. It should be capitalized.
|
| String entryMatchingPattern(String type, String parent, Pattern pattern) {
|
| if (pattern is String) {
|
| - var path = path.join(parent, pattern);
|
| - if (new File(path).existsSync() || new Directory(path).existsSync()) {
|
| - return path;
|
| + var fullPath = path.join(parent, pattern);
|
| + if (new File(fullPath).existsSync() || new Directory(fullPath).existsSync()) {
|
| + return fullPath;
|
| }
|
| - throw "$type not found: '$path'.";
|
| + throw "$type not found: '$fullPath'.";
|
| }
|
|
|
| var matchingEntries = new Directory(parent).listSync()
|
|
|