Skip to content

Commit 9e143d3

Browse files
handle vyper compiler warnings in asyncExec function
1 parent eaa817c commit 9e143d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compilers/src/lib/common.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export function asyncExec(
7474
if (error) {
7575
reject(error);
7676
} else if (stderr) {
77+
// Vyper compiler outputs warnings to stderr, so we handle them here
78+
if (stderr.startsWith('Warning:')) {
79+
resolve(stdout);
80+
}
7781
reject(
7882
new Error(`Compiler process returned with errors:\n ${stderr}`),
7983
);

0 commit comments

Comments
 (0)