migrate empty exceptions to tool exit with error message (#79898)
This commit is contained in:
committed by
GitHub
parent
15b9b58e7c
commit
76bc462520
@@ -115,11 +115,10 @@ flutter:
|
||||
projectDir: fileSystem.currentDirectory,
|
||||
dependenciesDir: fileSystem.currentDirectory,
|
||||
),
|
||||
throwsA(isA<Exception>()),
|
||||
);
|
||||
expect(
|
||||
logger.errorText,
|
||||
contains('Attempted to generate localizations code without having the flutter: generate flag turned on.'),
|
||||
throwsToolExit(
|
||||
message: 'Attempted to generate localizations code without having the '
|
||||
'flutter: generate flag turned on.',
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user