Repository navigation
Conversation
…NextcloudKit Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
|
The overall approach looks good, and separating technical error descriptions from user-facing messages is a welcome improvement. However, I have a couple of concerns about the HTTP status classification:
I would also recommend checking existing Nextcloud iOS consumers of I think the architecture is sound, but these classifications should be refined before merging. |
|
|
Some |
|
Added new messages for remaining |
SystemKeeper
left a comment
There was a problem hiding this comment.
Nice work!
Please squash the commits and use a meaningful commit message.
|
The PR looks much better now, and I think the overall architecture is solid. I have a few remaining considerations:
The changes to 412 and 405 look reasonable to me now, and the additional tests are a good improvement. Overall, I'm happy with the direction. Once these remaining points are addressed or verified, I think the PR is ready for approval. |
Removes technical server error strings with more appropriate (and generic) user readable strings. NKLog still prints the proper server errors.
Ex:
507: Storage quota is reachedbecomesThere is not enough storage space left on the server.etc.What changes
NKError.kind: Classifies between URL errors, HTTP statuses, OCS codes and the WebDAVInvalidPathexception.NKError.localizedGenericMessage: one translated message per kind. Only exception is unified sharing API, which prints user friendly messages from server.Related: nextcloud/ios#4397 (TLDR: also adds contexts to degeneralize
kinderrors, ex: Could not delete Report.pdf and is iOS Files specific)Blocked by: nextcloud/docker-ci#1011