From 506e9436a6225b804fb3df9f8ce8d5cb62480106 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sat, 18 Jan 2014 13:12:36 +0100 Subject: add publishTo repo --- .../main/scala/com/github/jodersky/flow/internal/NativeLoader.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'flow/src') 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() + } } } -- cgit v1.2.3