aboutsummaryrefslogtreecommitdiff
path: root/flow
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2014-01-18 13:12:36 +0100
committerJakob Odersky <jodersky@gmail.com>2014-01-18 13:12:36 +0100
commit506e9436a6225b804fb3df9f8ce8d5cb62480106 (patch)
tree4cea9c7fac61687fc8961cee634b98fd2ea7fd5c /flow
parentd83d7b615bb402f7ee55ccc6deab685db0e7b12e (diff)
downloadakka-serial-506e9436a6225b804fb3df9f8ce8d5cb62480106.tar.gz
akka-serial-506e9436a6225b804fb3df9f8ce8d5cb62480106.tar.bz2
akka-serial-506e9436a6225b804fb3df9f8ce8d5cb62480106.zip
add publishTo repo
Diffstat (limited to 'flow')
-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()
+ }
}
}