Skip to content

Commit 37b495d

Browse files
committed
closes #97
1 parent d64b67c commit 37b495d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v0.2.5
2+
======
3+
+ it was previously not possible to adjust the order of impacts with
4+
`SLIVAR_IMPACTFUL_ORDER`. This is now fixed. (#97)
5+
16
v0.2.4
27
======
38
+ fix long-standing bug (#27) that would cause sigsegv in some cases

src/slivarpkg/impact_order.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ proc adjustOrder*(order: string): TableRef[string, int] =
2121

2222
var default_order* = adjustOrder(order_x)
2323
if getEnv("SLIVAR_IMPACTFUL_ORDER") != "":
24-
default_order = adjustOrder(getEnv("SLIVAR_IMPACTFUL_ORDER"))
24+
if not fileExists(getEnv("SLIVAR_IMPACTFUL_ORDER")):
25+
raise newException(IOError, "[slivar] couldn't open file at:" & getEnv("SLIVAR_IMPACTFUL_ORDER") & " specified by env var 'SLIVAR_IMPACTFUL_ORDER'")
26+
default_order = adjustOrder(getEnv("SLIVAR_IMPACTFUL_ORDER").readFile)

src/slivarpkg/version.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const slivarVersion* = "0.2.4"
1+
const slivarVersion* = "0.2.5"
22
const slivarGitCommit* = staticExec("git rev-parse --verify HEAD")

0 commit comments

Comments
 (0)