Show More
@@ -86,8 +86,8 b' class ChangelogController(BaseRepoContro' | |||
|
86 | 86 | c.statuses = c.rhodecode_db_repo.statuses(page_revisions) |
|
87 | 87 | except (RepositoryError, ChangesetDoesNotExistError, Exception), e: |
|
88 | 88 | log.error(traceback.format_exc()) |
|
89 |
h.flash(str(e), category=' |
|
|
90 | return redirect(url('home')) | |
|
89 | h.flash(str(e), category='error') | |
|
90 | return redirect(url('changelog_home', repo_name=c.repo_name)) | |
|
91 | 91 | |
|
92 | 92 | self._graph(c.rhodecode_repo, collection, c.total_cs, c.size, p) |
|
93 | 93 |
@@ -203,8 +203,8 b' class ChangesetController(BaseRepoContro' | |||
|
203 | 203 | |
|
204 | 204 | except (RepositoryError, ChangesetDoesNotExistError, Exception), e: |
|
205 | 205 | log.error(traceback.format_exc()) |
|
206 |
h.flash(str(e), category=' |
|
|
207 | return redirect(url('home')) | |
|
206 | h.flash(str(e), category='error') | |
|
207 | return redirect(url('changeset_home', repo_name=c.repo_name)) | |
|
208 | 208 | |
|
209 | 209 | c.changes = OrderedDict() |
|
210 | 210 |
@@ -89,8 +89,8 b' class FilesController(BaseRepoController' | |||
|
89 | 89 | category='warning') |
|
90 | 90 | redirect(h.url('summary_home', repo_name=repo_name)) |
|
91 | 91 | |
|
92 | except RepositoryError, e: | |
|
93 |
h.flash(str(e), category=' |
|
|
92 | except RepositoryError, e: # including ChangesetDoesNotExistError | |
|
93 | h.flash(str(e), category='error') | |
|
94 | 94 | redirect(h.url('files_home', repo_name=repo_name, revision='tip')) |
|
95 | 95 | |
|
96 | 96 | def __get_filenode_or_redirect(self, repo_name, cs, path): |
@@ -108,7 +108,7 b' class FilesController(BaseRepoController' | |||
|
108 | 108 | if file_node.is_dir(): |
|
109 | 109 | raise RepositoryError('given path is a directory') |
|
110 | 110 | except RepositoryError, e: |
|
111 |
h.flash(str(e), category=' |
|
|
111 | h.flash(str(e), category='error') | |
|
112 | 112 | redirect(h.url('files_home', repo_name=repo_name, |
|
113 | 113 | revision=cs.raw_id)) |
|
114 | 114 |
General Comments 0
You need to be logged in to leave comments.
Login now