show appropriate error message when revert wont apply

This commit is contained in:
rick
2010-12-09 18:11:46 -08:00
parent d0475a45ed
commit 17a57b8071
4 changed files with 14 additions and 2 deletions
+1
View File
@@ -97,6 +97,7 @@ module Precious
@versions = [sha1, sha2]
diffs = wiki.repo.diff(@versions.first, @versions.last, @page.path)
@diff = diffs.first
@message = "The patch does not apply."
mustache :compare
end
end