]> granicus.if.org Git - ejabberd/commitdiff
When unknown roster version, return an acceptable version ID binary (#2709)
authorBadlop <badlop@process-one.net>
Mon, 10 Dec 2018 19:30:42 +0000 (20:30 +0100)
committerBadlop <badlop@process-one.net>
Mon, 10 Dec 2018 19:30:42 +0000 (20:30 +0100)
src/mod_roster.erl

index 1f42b69e0e1c23af9b1bdb0454e40cc67f52a472..6d0b37bc3fb29ac267f4f8c4aef534352552685e 100644 (file)
@@ -231,7 +231,7 @@ roster_version(LServer, LUser) ->
     case roster_version_on_db(LServer) of
       true ->
          case read_roster_version(LUser, LServer) of
-           error -> not_found;
+           error -> <<"not_found">>;
            {ok, V} -> V
          end;
       false ->