Skip to content

Commit

Permalink
ErrorFormat and TODO when double-uninstalling mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjf committed Oct 23, 2014
1 parent fdf649f commit 4430e00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CKAN/CKAN/ModuleInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,10 @@ public void Uninstall(string modName, bool uninstallDependencies)
{
if (!registry_manager.registry.IsInstalled(modName))
{
log.WarnFormat("Trying to uninstall {0} but it's not installed", modName);
// TODO: This could indicates a logic error somewhere;
// change to a kraken, the calling code can always catch it
// if it expects that it may try to uninstall a module twice.
log.ErrorFormat("Trying to uninstall {0} but it's not installed", modName);
return;
}

Expand Down Expand Up @@ -791,7 +794,7 @@ public void Uninstall(string modName, bool uninstallDependencies)
}
}

// And we're done! :)
return;
}
}
}

0 comments on commit 4430e00

Please sign in to comment.