[flutter_tools] add error handling wrapping for File.createSync (#73890)
This commit is contained in:
@@ -263,6 +263,17 @@ class ErrorHandlingFile
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void createSync({bool recursive = false}) {
|
||||
_runSync<void>(
|
||||
() => delegate.createSync(
|
||||
recursive: recursive,
|
||||
),
|
||||
platform: _platform,
|
||||
failureMessage: 'Flutter failed to create file at "${delegate.path}"',
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
RandomAccessFile openSync({FileMode mode = FileMode.read}) {
|
||||
return _runSync<RandomAccessFile>(
|
||||
|
||||
Reference in New Issue
Block a user