Coder Social home page Coder Social logo

Comments (7)

Odonno avatar Odonno commented on May 30, 2024

Yes, I suppose we can go inside the surrealdb query response and extract the error message.

Great idea.

from surrealdb-migrations.

unidesigner avatar unidesigner commented on May 30, 2024

That would be fantastic! Right now, it's quite cumbersome to rerun the migration file manually and parse the errors.

from surrealdb-migrations.

turbohz avatar turbohz commented on May 30, 2024

AFAIK, there's no error message there to extract.

See surrealdb/surrealdb#2888

But printing the whole query of the failed transaction would definitely help.

from surrealdb-migrations.

Odonno avatar Odonno commented on May 30, 2024

I have released the v1.0.1 crate which should now display the list of error messages when a migration fails.

from surrealdb-migrations.

unidesigner avatar unidesigner commented on May 30, 2024

@Odonno: I tried to compile v1.0.1. create with
cargo install [email protected]
but ran into a compile error

error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
    --> /home/stephan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ordered-multimap-0.7.1/src/list_ordered_multimap.rs:3288:34
     |
3288 |     let hash = self.build_hasher.hash_one(key);
     |                                  ^^^^^^^^
     |
     = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information


For more information about this error, try `rustc --explain E0658`.
error: could not compile `ordered-multimap` (lib) due to 27 previous errors

Any idea how to fix this?

from surrealdb-migrations.

Odonno avatar Odonno commented on May 30, 2024

No problem on my end. What is your version of Rust? Can you try to upgrade to the latest version of Rust and see if the error disappear?

from surrealdb-migrations.

unidesigner avatar unidesigner commented on May 30, 2024

Updating Rust fixed the error. Thanks.

from surrealdb-migrations.

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.