Skip to content

Commit

Permalink
Correctly stub out Exception#backtrace?
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 authored and asterite committed Jan 24, 2018
1 parent b05ad8d commit 302ff6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exception.cr
Expand Up @@ -33,7 +33,7 @@ class Exception
# “0xAddress: Function at File Line Column”.
def backtrace?
{% if flag?(:win32) %}
nil
Array(String).new
{% else %}
@callstack.try &.printable_backtrace
{% end %}
Expand Down

0 comments on commit 302ff6c

Please sign in to comment.