Index: utils/pub/pub.dart |
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart |
index 302420ffc184bf0baed30a298309420644a1bfe3..aef14907583f5ce1800e46501969ed2bb123a659 100644 |
--- a/utils/pub/pub.dart |
+++ b/utils/pub/pub.dart |
@@ -271,7 +271,7 @@ abstract class PubCommand { |
'${path.current}.'; |
} else if (e is PubspecHasNoNameException && e.name == null) { |
e = 'pubspec.yaml is missing the required "name" field (e.g. "name: ' |
- '${basename(path.current)}").'; |
+ '${path.basename(path.current)}").'; |
} |
handleError(e, asyncError.stackTrace); |