Giter Club home page Giter Club logo

Comments (8)

m-2k avatar m-2k commented on July 18, 2024 2
errors([])        -> [];
errors(false)     -> [];
errors(true)      -> [{error,unknown}];
errors({error,L}) -> info("ERROR: ~tp~n",[L]), [{error,L}];
errors({ok,_})    -> info("OK~n",[]), [];
errors(X)         -> info("RETURN: ~tp~n",[X]), [{error,X}].

not works for me

from mad.

doxtop avatar doxtop commented on July 18, 2024

same. but you can use mad_git:up([]) directly from repl until resolved.

from mad.

5HT avatar 5HT commented on July 18, 2024
$ mad up
==> up: "deps/active"
==> up: "deps/cowboy"
==> up: "deps/cowlib"
==> up: "deps/erlydtl"
==> up: "deps/fs"
==> up: "deps/kvs"
Already up-to-date.
/Users/maxim/depot/synrc/n2o/samples
==> up: "deps/mad"
==> up: "deps/n2o"
Updating 8e17667..0db7f0e
Fast-forward
 include/wf.hrl                |  2 +-
 priv/bullet.js                |  5 +--
 priv/ftp.js                   | 82 +++++++++++++++++++++++++++++++++++--------
 priv/n2o.js                   |  2 +-
 src/formatters/wf_convert.erl |  2 +-
 src/handlers/n2o_syn.erl      |  6 ++--
 src/protocols/n2o_file.erl    | 16 ++++-----
 7 files changed, 84 insertions(+), 31 deletions(-)
/Users/maxim/depot/synrc/n2o/samples
==> up: "deps/nitro"
From git://github.com/synrc/nitro
   47f0111..5ba3d3d  master     -> origin/master
Updating 47f0111..5ba3d3d
Fast-forward
 src/render/wf_event.erl | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
/Users/maxim/depot/synrc/n2o/samples
==> up: "deps/ranch"
==> up: "deps/rest"
==> up: "deps/sh"
==> up: "deps/syn"
==> up: "."
From github.com:synrc/n2o
   8e17667..0db7f0e  master     -> origin/master
Updating 8e17667..0db7f0e
Fast-forward
 include/wf.hrl                |  2 +-
 priv/bullet.js                |  5 +--
 priv/ftp.js                   | 82 +++++++++++++++++++++++++++++++++++--------
 priv/n2o.js                   |  2 +-
 src/formatters/wf_convert.erl |  2 +-
 src/handlers/n2o_syn.erl      |  6 ++--
 src/protocols/n2o_file.erl    | 16 ++++-----
 7 files changed, 84 insertions(+), 31 deletions(-)
/Users/maxim/depot/synrc/n2o/samples
OK

Just did mad up in samples. How to reproduce?

from mad.

doxtop avatar doxtop commented on July 18, 2024

the cases to reproduce are different and not so stable :)

but I think here
https://github.com/synrc/mad/blob/master/src/mad.erl#L44
errors(true) -> {error,unknown};
should be
errors(true) -> [{error,unknown}];
so flattening after foldl will be happier :)

from mad.

5HT avatar 5HT commented on July 18, 2024

is that fix works for you?

from mad.

doxtop avatar doxtop commented on July 18, 2024

i don't know is this enough, definitely it helps to do not crash on flattening the tuple, but I don't really check if the update is actually occurs

from mad.

doxtop avatar doxtop commented on July 18, 2024

[{error,unknown}] will help only with "no function clause matching lists:flatten({error,unknown})"
the error obviously still unknown. where is no reason to wrap everything in list.
will check it later

from mad.

5HT avatar 5HT commented on July 18, 2024

Can't reproduce in master.

from mad.

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.