Skip to content

Commit

Permalink
Quick test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marzvrover authored May 22, 2022
1 parent f28d1bc commit 7174ea3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/swiftpackages/DotEnv.git",
"state": {
"branch": null,
"revision": "81924d9df130f465a54da36079a5b4c44a70d03c",
"version": "1.0.0"
"revision": "1f15bb9de727d694af1d003a1a5d7a553752850f",
"version": "3.0.0"
}
},
{
Expand All @@ -33,8 +33,8 @@
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "2bae395344d41710dffab456265d534d7dc34ab8",
"version": "2.25.0"
"revision": "124119f0bb12384cef35aa041d7c3a686108722d",
"version": "2.40.0"
}
}
]
Expand Down
6 changes: 5 additions & 1 deletion Sources/SwiftcraftLibrary/Networking/Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ open class Server {
/// To instantiate the server you provide the host and path
public init(host: String? = nil, port: Int? = nil) {
self.isRunning = false
DotEnv.load(path: "server.properties")
do {
try DotEnv.load(path: "server.properties")
} catch {
print("Error loading server.properties")
}
if host != nil {
self.host = host!
} else {
Expand Down

0 comments on commit 7174ea3

Please sign in to comment.