diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-15 06:50:54 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-15 06:50:54 +0800 |
commit | a9c23b7c2857a826756b919e6be73456536e344d (patch) | |
tree | badb9f4c4eaf01e786eb197ae7449229adcd50e5 | |
parent | 263bfb1bdad8acdb9b534edf6e79024e8da35721 (diff) | |
download | dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.tar dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.tar.gz dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.tar.bz2 dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.tar.lz dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.tar.xz dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.tar.zst dexon-sol-tools-a9c23b7c2857a826756b919e6be73456536e344d.zip |
Reverse order of stack trace to match behavior of most other language stack traces
-rw-r--r-- | packages/sol-cov/src/revert_trace_subprovider.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-cov/src/revert_trace_subprovider.ts b/packages/sol-cov/src/revert_trace_subprovider.ts index aef9c7568..1889f13c4 100644 --- a/packages/sol-cov/src/revert_trace_subprovider.ts +++ b/packages/sol-cov/src/revert_trace_subprovider.ts @@ -228,7 +228,7 @@ export class RevertTraceSubprovider extends Subprovider { } if (sourceRanges.length > 0) { this._logger.error('\n\nStack trace for REVERT:\n'); - _.forEach(sourceRanges, sourceRange => { + _.forEach(_.reverse(sourceRanges), sourceRange => { this._logger.error( `${sourceRange.fileName}:${sourceRange.location.start.line}:${sourceRange.location.start.column}`, ); |