Skip to content

Commit

Permalink
fix(errors): missed error message for compilation errors (tact-lang#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
jubnzv authored Aug 9, 2024
1 parent ce4644e commit 1cd1af2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ export function throwCompilationError(
message: string,
source?: SrcInfo,
): never {
const loc =
const msg =
source === undefined
? ""
? message
: `${locationStr(source)}${message}\n${source.interval.getLineAndColumnMessage()}`;
throw new TactCompilationError(loc, source);
throw new TactCompilationError(msg, source);
}

export function throwInternalCompilerError(
Expand Down

0 comments on commit 1cd1af2

Please sign in to comment.