Skip to content

Commit 1ec210a

Browse files
committed
Making use of a helper function in the callstack exception
1 parent dc558c0 commit 1ec210a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/callstack_exception.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Callstack Library - Library creating human-readable call stacks.
33
*
4-
* Copyright (C) 2023 mhahnFr
4+
* Copyright (C) 2023 - 2024 mhahnFr
55
*
66
* This file is part of the CallstackLibrary. This library is free software:
77
* you can redistribute it and/or modify it under the terms of the
@@ -173,7 +173,7 @@ class exception: public std::exception {
173173
<< "(" << callstack_frame_getShortestName(&frames[i]) << ") "
174174
<< (frames[i].function == LCS_NULL ? "<< Unknown >>" : frames[i].function)
175175
<< (frames[i].sourceFile == LCS_NULL ? ""
176-
: (" (" + std::string(frames[i].sourceFile) + ":" + toString(frames[i].sourceLine) + ")"))
176+
: (" (" + std::string(callstack_frame_getShortestSourceFile(&frames[i])) + ":" + toString(frames[i].sourceLine) + ")"))
177177
<< std::endl;
178178
}
179179
}

0 commit comments

Comments
 (0)