Comments (8)
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.
same. but you can use mad_git:up([]) directly from repl until resolved.
from mad.
$ 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.
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.
is that fix works for you?
from mad.
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.
[{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.
Can't reproduce in master.
from mad.
Related Issues (20)
- MAD ECC/RSA CLIENT should create PFX
- там не було конфліктів HOT 1
- `mad app mqtt` not available HOT 1
- make failed: deps/ling/bc/*.erl: no such file or directory HOT 1
- Deps not compiled if directory is symlink HOT 1
- fail to compile dtl HOT 2
- 3.9 not supports OTP/R19 HOT 10
- mad cle removes .app file
- missing mad_bundle or typo ? HOT 1
- Link to "Official MAD brochure PDF" is broken
- Make on Windows fails HOT 1
- MAD desn't handle error on broken rebar.config
- No output from logger (OTP 21)
- Implement stop command HOT 3
- No way to set node name with mad HOT 8
- Discover applications in lib_dirs HOT 3
- mad clean does not clean all files up
- Feature request: dev-dependencies HOT 1
- mad does not run pre_hooks from dependencies
- Spaces in path names cause errors HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mad.