Improved ensureDirectoryExists error message (#7880)

This commit is contained in:
Chris Bracken
2017-02-03 18:09:07 -08:00
committed by GitHub
parent 165e96e214
commit c7054b302b

View File

@@ -29,7 +29,7 @@ void ensureDirectoryExists(String filePath) {
try {
fs.directory(dirPath).createSync(recursive: true);
} on FileSystemException catch (e) {
throwToolExit('Failed to create directory "$dirPath".\n$e');
throwToolExit('Failed to create directory "$dirPath": ${e.osError.message}');
}
}