Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Apr 21, 2024
1 parent 09467c0 commit 3746f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abi/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ export const GlobalFunctions: Map<string, AbiFunction> = new Map([
return `${ctx.used("__tact_nop")}()`;
}
const filePath = ref.file
? path.basename(ref.file!)
? path.relative(cwd(), ref.file!)
: "unknown";
const lineCol = ref.interval.getLineAndColumn();
const debugPrint = `[DEBUG] File ${filePath}, Line ${lineCol.lineNum}, Column ${lineCol.colNum}`;
const debugPrint = `[DEBUG] File ${filePath}:${lineCol.lineNum}:${lineCol.colNum}`;
return `${ctx.used(`__tact_debug_stack`)}("${debugPrint}")`;
},
},
Expand Down

0 comments on commit 3746f08

Please sign in to comment.