owncloud / owncloud/ocis

Error handling in the graph service needs consistent mapping

Open
#7,256 0 comments 1 reaction 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

While having fun with https://github.com/owncloud/ocis/pull/7250 I noticed that erorr handling is very inconsistent, often only checking the CS3 OK status code, but ignoring permission denied, not found and all the other codes.

We should implement a conversion from cs3 status to errorcode that can be used after every CS3 api call.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.