File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
src/macosMain/kotlin/com/jetbrains/handson/handson/init Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class FileIO() {
30
30
31
31
fun createFolder (folderName : String ) {
32
32
val result = mkdir(folderName, S_IRWXU )
33
- if (result != 0 && result != EEXIST ) {
33
+ if (result != 0 && result != - 1 ) {
34
34
throw FileIOException (errno)
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ fun main(args: Array<String>) {
20
20
handsOnInitiator.createLicenseFile()
21
21
handsOnInitiator.createGitIngoreFile()
22
22
handsOnInitiator.outputInstructions()
23
- } catch (e: ConfigurationException ) {
24
- printErrorMessage(e)
25
- exitProcess(- 1 )
26
- } catch (e: HandsOnInitiatorException ) {
23
+ } catch (e: Exception ) {
27
24
printErrorMessage(e)
28
25
exitProcess(- 1 )
29
26
}
You can’t perform that action at this time.
0 commit comments