Improve unsupported text (#27186)
This commit is contained in:
@@ -508,7 +508,9 @@ abstract class ResidentRunner {
|
||||
bool get supportsRestart => false;
|
||||
|
||||
Future<OperationResult> restart({ bool fullRestart = false, bool pauseAfterRestart = false, String reason }) {
|
||||
throw 'unsupported';
|
||||
final String mode = isRunningProfile ? 'profile' :
|
||||
isRunningRelease ? 'release' : 'this';
|
||||
throw '${fullRestart ? 'Restart' : 'Reload'} is not supported in $mode mode';
|
||||
}
|
||||
|
||||
Future<void> stop() async {
|
||||
|
||||
Reference in New Issue
Block a user