mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
hopefully fixing RuntimeException
This commit is contained in:
parent
136b59917c
commit
dd4e7d5bf0
1 changed files with 3 additions and 3 deletions
|
@ -88,15 +88,15 @@ object BitcoindInstance {
|
|||
|
||||
lazy val DEFAULT_BITCOIND_LOCATION: File = {
|
||||
|
||||
val cmd = Try(
|
||||
val cmd =
|
||||
if (Properties.isWin) {
|
||||
"bitcoind.exe".!!
|
||||
} else {
|
||||
"bitcoind".!!
|
||||
}
|
||||
).getOrElse(
|
||||
|
||||
val path = Try(cmd).getOrElse(
|
||||
throw new RuntimeException("Could not locate bitcoind on user PATH"))
|
||||
val path = cmd
|
||||
new File(path.trim)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue