<p dir="auto">If the developer has modified the flutter repo, "flutter upgrade" will fail. Right now it's a bit ugly:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter from https://github.com/flutter/flutter.git (on master)
flutter revision: 0494801b173a69121cc36dc32b27b6d68ffa77cf (12 hours ago)
engine revision : 9e1e1fba5474b458458b65f1aa1d0d730af2705b

Upgrading Flutter...
From https://github.com/flutter/flutter
   1dd74a3..dc68728  master     -&gt; origin/master
fatal: Not possible to fast-forward, aborting."><pre class="notranslate"><code class="notranslate">Flutter from https://github.com/flutter/flutter.git (on master)
flutter revision: 0494801b173a69121cc36dc32b27b6d68ffa77cf (12 hours ago)
engine revision : 9e1e1fba5474b458458b65f1aa1d0d730af2705b

Upgrading Flutter...
From https://github.com/flutter/flutter
   1dd74a3..dc68728  master     -&gt; origin/master
fatal: Not possible to fast-forward, aborting.
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> It should probably just say something like "Cannot upgrade while you have local changes.".</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> We should also provide a way to force the upgrade anyway, saving any local changes to a patch file (<code class="notranslate">--force</code> or something).</li>
</ul>
<p dir="auto">This is what you see when you run <code class="notranslate">flutter upgrade</code> but have a conflict:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sethladd-macbookpro:flutter_gallery sethladd$ flutter upgrade
Upgrading Flutter from /Users/sethladd/Code/flutter...
From https://github.com/flutter/flutter
   244a7a02b..d2abdf8e6  master     -&gt; origin/master
error: Your local changes to the following files would be overwritten by merge:
	examples/flutter_gallery/.idea/modules.xml
Please commit your changes or stash them before you merge.
Aborting
Updating 657a4c3fc..d2abdf8e6"><pre class="notranslate"><code class="notranslate">sethladd-macbookpro:flutter_gallery sethladd$ flutter upgrade
Upgrading Flutter from /Users/sethladd/Code/flutter...
From https://github.com/flutter/flutter
   244a7a02b..d2abdf8e6  master     -&gt; origin/master
error: Your local changes to the following files would be overwritten by merge:
	examples/flutter_gallery/.idea/modules.xml
Please commit your changes or stash them before you merge.
Aborting
Updating 657a4c3fc..d2abdf8e6
</code></pre></div>
<p dir="auto">Note the "Updating ..." which I thought meant "update complete!"</p>
<p dir="auto">Actually, due to the conflict when merging, the update didn't complete. :/</p>
<p dir="auto">Can we print out a clearer message when the update fails? Something like: "Upgrade failed. Please see output above, or run flutter upgrade -v for more info."</p>
<p dir="auto">Thanks!</p>