explicitly catch ArgumentError, and add tests (#52757)
This commit is contained in:
committed by
GitHub
parent
a4d30c1607
commit
071d4eb2c8
@@ -542,6 +542,9 @@ class _DefaultProcessUtils implements ProcessUtils {
|
||||
} on Exception catch (error) {
|
||||
_logger.printTrace('$cli failed with $error');
|
||||
return false;
|
||||
} on ArgumentError catch (error) {
|
||||
_logger.printTrace('$cli failed with $error');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -556,6 +559,9 @@ class _DefaultProcessUtils implements ProcessUtils {
|
||||
} on Exception catch (error) {
|
||||
_logger.printTrace('$cli failed with $error');
|
||||
return false;
|
||||
} on ArgumentError catch (error) {
|
||||
_logger.printTrace('$cli failed with $error');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user