| 234 | |
| 235 | |
| 236 | class MetadataDecodingException(Exception): |
| 237 | def __init__(self, input_string): |
| 238 | self.input_string = input_string |
| 239 | |
| 240 | def __str__(self): |
| 241 | return """Decoding perforce metadata failed! |
| 242 | The failing string was: |
| 243 | --- |
| 244 | {} |
| 245 | --- |
| 246 | Consider setting the git-p4.metadataDecodingStrategy config option to |
| 247 | 'fallback', to allow metadata to be decoded using a fallback encoding, |
| 248 | defaulting to cp1252.""".format(self.input_string) |
| 249 | |
| 250 | |
| 251 | encoding_fallback_warning_issued = False |
no outgoing calls
no test coverage detected