Skip to content

Commit

Permalink
fix: return build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Nov 17, 2024
1 parent 154fe62 commit 5052961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/api/build/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export async function POST(request: NextRequest) {
return Response.json({ error: message }, { status: response.status });
}

const content = await response.text();

if (content.includes("Determining projects to restore")) {
return Response.json({ error: content }, { status: 400 });
}

return Response.json({ dll: await response.text() });
} else if (files.some((i) => i.path.endsWith(".sol"))) {
const formData = new FormData();
Expand Down

0 comments on commit 5052961

Please sign in to comment.