[Windows] Improve symlink ERROR_ACCESS_DENIED error message (#154030)

Currently, if creating a symlink on Windows fails due to `ERROR_ACCESS_DENIED`, you'll get an error message like:

```
Error: ERROR_ACCESS_DENIED file system exception thrown while trying to create a symlink from source to dest
```

The `source` and `dest` paths are incorrect.

This will help us debug: https://github.com/flutter/flutter/issues/153758
This commit is contained in:
Loïc Sharma
2024-08-26 10:52:11 -07:00
committed by GitHub
parent 9032717eac
commit ebfaa45c7d
2 changed files with 64 additions and 15 deletions

View File

@@ -993,8 +993,8 @@ void _createPlatformPluginSymlinks(Directory symlinkDirectory, List<Object?>? pl
e,
platform: globals.platform,
os: globals.os,
destination: 'dest',
source: 'source',
destination: link.path,
source: path,
);
rethrow;
}