Merge pull request #698 from srawlins/tweak-unsupported-uris
Tweak unsupported imports message
diff --git a/lib/src/analysis_servers.dart b/lib/src/analysis_servers.dart
index 43368d2..dc9bd08 100644
--- a/lib/src/analysis_servers.dart
+++ b/lib/src/analysis_servers.dart
@@ -166,7 +166,9 @@
if (unsupportedImports.isNotEmpty) {
// TODO(srawlins): Do the work so that each unsupported input is its own
// error, with a proper SourceSpan.
- throw BadRequest('Unsupported input(s): $unsupportedImports');
+ final unsupportedUris =
+ unsupportedImports.map((import) => import.uri.stringValue);
+ throw BadRequest('Unsupported import(s): $unsupportedUris');
}
}
}