Skip to content
Snippets Groups Projects
Commit d12bc9e2 authored by Tuxicoman's avatar Tuxicoman Committed by Moul
Browse files

Update index.ts

parent dd0083cf
No related branches found
No related tags found
1 merge request!1269"No interface" better error message
...@@ -165,7 +165,7 @@ export const BmaDependency = { ...@@ -165,7 +165,7 @@ export const BmaDependency = {
// Configuration errors // Configuration errors
if (!conf.nobma) { if (!conf.nobma) {
if(!conf.ipv4 && !conf.ipv6){ if(!conf.ipv4 && !conf.ipv6){
throw new Error("BMA: no interface to listen to."); throw new Error("BMA: no interface to listen to. Provide ipv4/ipv6 interface or deactivate BMA");
} }
if(!conf.remoteipv4 && !conf.remoteipv6 && !conf.remotehost){ if(!conf.remoteipv4 && !conf.remoteipv6 && !conf.remotehost){
throw new Error('BMA: no interface for remote contact.'); throw new Error('BMA: no interface for remote contact.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment