aboutsummaryrefslogtreecommitdiff
path: root/flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala
diff options
context:
space:
mode:
Diffstat (limited to 'flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala')
-rw-r--r--flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala b/flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala
index 034be96..7c3a2dc 100644
--- a/flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala
+++ b/flow/src/main/scala/com/github/jodersky/flow/internal/NativeLoader.scala
@@ -24,14 +24,16 @@ object NativeLoader {
def loadFromJar() = extract() match {
case Some(file) => System.load(file.getAbsolutePath)
- case None => throw new UnsatisfiedLinkError("cannot extract native library, the native library may not exist for your specific os/architecture combination")
+ case None => throw new UnsatisfiedLinkError("Cannot extract native library, the native library may not exist for your specific os/architecture combination.")
}
def load = {
try {
System.loadLibrary("flow")
} catch {
- case ex: UnsatisfiedLinkError => loadFromJar()
+ case ex: UnsatisfiedLinkError => {
+ loadFromJar()
+ }
}
}