Commit c7054b30 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Improved ensureDirectoryExists error message (#7880)

parent 165e96e2
......@@ -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}');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment