[Fix] Added missing default branch

This commit is contained in:
Robert von Burg 2023-11-30 13:12:35 +01:00
parent 792221e190
commit 30086f36cc
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ public class AgentResource {
case STARTED -> component.start();
case STOPPED -> component.stop();
case DESTROYED -> component.destroy();
default -> throw new IllegalStateException("Unhandled state " + state);
}
} catch (Exception e) {
logger.error("Failed to change state of component " + name + " to state " + state, e);