Unverified Commit d5fd57cf authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Improve unsupported text (#27186)

parent 64a1ce01
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment