Skip to content

Commit

Permalink
refactor(compiler): remove extra error transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jun 23, 2023
1 parent 7509795 commit 009cce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/compiler/Http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class CompilerHttp extends CompilerBase {
return res as { bytecode: Encoded.ContractBytearray; aci: Aci };
} catch (error) {
if (error instanceof RestError && error.statusCode === 400) {
throw new CompilerError(error.message.replace(/^aci error:/, 'compile error:'));
throw new CompilerError(error.message);
}
throw error;
}
Expand Down

0 comments on commit 009cce2

Please sign in to comment.