mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
More gracefully handle unexpected errors in JS interop
This commit is contained in:
parent
2cf2f27499
commit
1e70242959
@ -182,9 +182,9 @@ T _systemErrorToFileSystemException<T>(T callback()) {
|
||||
try {
|
||||
return callback();
|
||||
} catch (error) {
|
||||
var systemError = error as JsSystemError;
|
||||
if (error is! JsSystemError) rethrow;
|
||||
throw FileSystemException._(
|
||||
_cleanErrorMessage(systemError), systemError.path);
|
||||
_cleanErrorMessage(error), error.path);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user