Giter Site home page Giter Site logo

Comments (4)

ldanielburr avatar ldanielburr commented on May 23, 2024

I agree with the title of this issue, but vehemently disagree that return integer codes is a good, or even decent, means of accomplishing this aim. In order to provide "an appropriate non-zero value on failure" means parsing the OperationalError anyway, so why not convert it to a goose.exceptions.SomeAppropriateException, with a "more informative and user-friendly" message attribute?

from goose.

steder avatar steder commented on May 23, 2024

I'm not advocating that the return code be used by people using Goose as a library within their startup process.
I'm also not thinking that they should use a return code ("Just run goose and then "echo $?" to check the return code!").

I'm just thinking that any traceback is irrelevant in the case of an error in a SQL file but the migration should still fail in a way that is unambiguous for a runner like Buildbot or Jenkins.

http://buildbot.net/buildbot/docs/0.8.5/manual/cfg-buildsteps.html

from goose.

ldanielburr avatar ldanielburr commented on May 23, 2024

I'm not quite with you yet, though I agree with what you said regarding buildbot/jenkins. What I don't understand is the phrase "any traceback is irrelevant in the case of an error in a SQL file"; it seems pretty relevant to me. Sure the database driver is the thing that actually raises the OperationalError, or what-have-you, but I think it is no different than raising OSError when performing a file-system operation: I still want to know why the error was raised, and the traceback will contain the actual exception message (from the rdbms in this case), and I would want to know that.

from goose.

steder avatar steder commented on May 23, 2024

Yeah, I see your point.
On Mar 11, 2012 1:34 PM, "L. Daniel Burr" <
[email protected]>
wrote:

I'm not quite with you yet, though I agree with what you said regarding
buildbot/jenkins. What I don't understand is the phrase "any traceback is
irrelevant in the case of an error in a SQL file"; it seems pretty relevant
to me. Sure the database driver is the thing that actually raises the
OperationalError, or what-have-you, but I think it is no different than
raising OSError when performing a file-system operation: I still want to
know why the error was raised, and the traceback will contain the actual
exception message (from the rdbms in this case), and I would want to know
that.


Reply to this email directly or view it on GitHub:
#16 (comment)

from goose.

Related Issues (16)

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.