Index: utils/pub/pub.dart |
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart |
index 163090e5610b668cbdb85fdc079c782dba6e5914..a8371633fe4faa186f29fc8349174352a3a337e9 100644 |
--- a/utils/pub/pub.dart |
+++ b/utils/pub/pub.dart |
@@ -278,7 +278,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); |