git: More detailed message in case of Charset error
@965a7a6ca3eda65e63c05369678dd72e49d87cd6
--- app/controllers/GitApp.java
+++ app/controllers/GitApp.java
... | ... | @@ -120,7 +120,7 @@ |
120 | 120 |
"git.error.permission", user.loginId, ownerName, projectName); |
121 | 121 |
} else { |
122 | 122 |
message = Messages.get(Lang.defaultLang(), |
123 |
- "git.error.permission", user.loginId, ownerName, projectName); |
|
123 |
+ "git.error.notAllowedCharset", user.loginId, ownerName, projectName); |
|
124 | 124 |
} |
125 | 125 |
response().setHeader("Content-Type", contentType); |
126 | 126 |
return forbidden(message); |
--- conf/messages
+++ conf/messages
... | ... | @@ -232,6 +232,7 @@ |
232 | 232 |
fork.original = Forked from |
233 | 233 |
fork.redirect.exist = Move to the forked project |
234 | 234 |
git.error.permission = ''{0}'' has no permission to ''{1}/{2}''. |
235 |
+git.error.notAllowedCharset = ''{0}'' : Current charset is not allowed! ''{1}/{2}''. |
|
235 | 236 |
issue.assignToAuthor = Assign to author |
236 | 237 |
issue.assignToMe = Assign to me |
237 | 238 |
issue.assignee = Assignee |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?