Skip to content

Commit c300f62

Browse files
author
Fahad Israr
committed
throw exception:illegalStateException
1 parent a1d9272 commit c300f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/main/java/dev/starfix/Starfix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static File getConfigFile() {
126126

127127
if(!configDir.exists()){ // If .config directory does not exist we create it
128128
if(!configDir.mkdir()){ // If creation failed
129-
throw new IllegalArgumentException("Cannot create .config directory: " + configDir.getAbsolutePath());
129+
throw new IllegalStateException("Cannot create .config directory: " + configDir.getAbsolutePath());
130130
}
131131
}
132132
return new File(userHome + "/.config/starfix.yaml");

0 commit comments

Comments
 (0)