I'm running Yaws 1.84, and I'm having a problem with start_embedded/2.

According to the Yaws website page about embedding (http://yaws.hyber.org/embed.yaws), the following line should start Yaws in embedded mode:

1> yaws:start_embedded("/home/tobbe/docroot", [{servername, "sej"}, {listen, {0,0,0,0}}]).

However, when I run it, there is a "badgroups" exception. Here is the output:

$ erl -pa yaws-1.84/ebin
Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [kernel-poll:false]

Eshell V5.6.5 (abort with ^G)
1> yaws:start_embedded("/home/tobbe/docroot", [{servername, "sej"}, {listen, {0,0,0,0}}]).
** exception error: badgroups
in function yaws_config:verify_upgrade_args/2
in call from yaws_api:setconf/3

Looking at the source for yaws_config:verify_upgrade_args/2 seems to show that it is expecting [#sconf{}] for its 2nd argument.

Is this a bug, or just a case of outdated documentation? Have I missed something? Can anyone give a working example of yaws:start_embedded/2?

Best,
Dave