diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-19 15:46:43 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-19 15:46:43 +0000 |
| commit | 96b7f507da729af3b9cf974b3eb75f85e572bee2 (patch) | |
| tree | 273076e9fc7ee483588f4a677c0a0552cc5dd1b7 /src/rabbit.erl | |
| parent | b34e93ce0108a982fc1fe6ac94e893187dd532e4 (diff) | |
| download | rabbitmq-server-git-96b7f507da729af3b9cf974b3eb75f85e572bee2.tar.gz | |
eliminate "Function X has no local return" dialyzer errors
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 0f3c52ca67..16694105ee 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -533,6 +533,9 @@ sort_boot_steps(UnsortedSteps) -> end]) end. +-ifdef(use_specs). +-spec(boot_error/2 :: (term(), not_available | [tuple()]) -> no_return()). +-endif. boot_error(Term={error, {timeout_waiting_for_tables, _}}, _Stacktrace) -> AllNodes = rabbit_mnesia:cluster_nodes(all), {Err, Nodes} = @@ -552,6 +555,10 @@ boot_error(Reason, Stacktrace) -> Args = [Reason, log_location(kernel), log_location(sasl)], boot_error(Reason, Fmt, Args, Stacktrace). +-ifdef(use_specs). +-spec(boot_error/4 :: (term(), string(), [any()], not_available | [tuple()]) + -> no_return()). +-endif. boot_error(Reason, Fmt, Args, not_available) -> basic_boot_error(Reason, Fmt, Args); boot_error(Reason, Fmt, Args, Stacktrace) -> |
