diff options
Diffstat (limited to 'src/main/scala/byspel/app/App.scala')
-rw-r--r-- | src/main/scala/byspel/app/App.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/scala/byspel/app/App.scala b/src/main/scala/byspel/app/App.scala index 65b3c3f..15a216f 100644 --- a/src/main/scala/byspel/app/App.scala +++ b/src/main/scala/byspel/app/App.scala @@ -30,7 +30,8 @@ trait App { case head :: _ if Files.isReadable(Paths.get(head)) => log(s"loading config from '${args(0)}'") import toml.Codecs._ - Toml.parseAs[Config](Files.readString(Paths.get(head))) match { + val str = new String(Files.readAllBytes(Paths.get(head)), "utf-8") + Toml.parseAs[Config](str) match { case Left(err) => log(s"fatal: syntax error in config file: $err") sys.exit(1) |