mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
DMX-23 not throwing invalid data
This commit is contained in:
parent
8fed61f78c
commit
8bc4d9dd3d
1 changed files with 2 additions and 4 deletions
|
@ -50,8 +50,7 @@ IpMethod parseIpMethod(String ipMethod)
|
||||||
return DHCP;
|
return DHCP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: concat strings
|
throw ::std::invalid_argument("Invalid IP method value");
|
||||||
throw ::std::invalid_argument("Invalid IP method value" + ipMethod);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connection parseConnection(String connection)
|
Connection parseConnection(String connection)
|
||||||
|
@ -69,8 +68,7 @@ Connection parseConnection(String connection)
|
||||||
return Ethernet;
|
return Ethernet;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: concat strings
|
throw ::std::invalid_argument("Invalid connection value");
|
||||||
throw ::std::invalid_argument("Invalid connection value: " + connection);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Direction parseDirection(uint8_t direction)
|
Direction parseDirection(uint8_t direction)
|
||||||
|
|
Loading…
Add table
Reference in a new issue