Giter Club home page Giter Club logo

Comments (6)

MrVine avatar MrVine commented on July 17, 2024

@chripo, what do you think about?

from gowebdav.

chripo avatar chripo commented on July 17, 2024

the lower case methods are not going to be exported.
therefore error handling / result handling by status code is simpler.
surely there is space for improvement and consistency, in uppercase methods too!
maybe we should introduce an own error structure that includes the status code, without or with the origin error.
simplicity first. ;)

from gowebdav.

MrVine avatar MrVine commented on July 17, 2024

I have experience of using gowebdav with WebDav server which had outdated certificate, and it was difficult for me to answer the question "why my application does not recieves/sends data?", because all what I got back from gowebdav was:

Mkdir /path/to/my/file.txt 400

When I fix error suppressing and got this error:

x509: certificate signed by unknown authority

I understand where the problem is and fix it quickly.

That is why I propose to return error messages even from lower case methods.
Mkdir 400 it is not an good answer, users should knows how the real error sounds to be able to quickly fix it.

from gowebdav.

chripo avatar chripo commented on July 17, 2024

from gowebdav.

chripo avatar chripo commented on July 17, 2024

We're going to fix this long outstanding issue due to @fischor and @zekroTJA investigations.
Thank you!

from gowebdav.

chripo avatar chripo commented on July 17, 2024

finally done.
thanks to @fischor and @zekroTJA

from gowebdav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.