Skip to content

Commit

Permalink
Show human readable compiler errors on compilation fail (#3925)
Browse files Browse the repository at this point in the history
Summary:
## Before
<img width="1123" alt="Screen Shot 2022-05-25 at 9 13 47 AM" src="https://user-images.githubusercontent.com/162735/170309477-608647df-812f-49fb-be99-eb9b5d65b792.png">

## After

<img width="1121" alt="Screen Shot 2022-05-25 at 9 13 58 AM" src="https://user-images.githubusercontent.com/162735/170309437-5d84df5c-52d9-4ba3-bd7b-51df4f53996d.png">

Pull Request resolved: #3925

Reviewed By: voideanvalue

Differential Revision: D36667393

Pulled By: captbaritone

fbshipit-source-id: 9b3b375dc1cf97ddfcda4722544cba63654d7064
  • Loading branch information
captbaritone authored and facebook-github-bot committed May 25, 2022
1 parent efd9d86 commit b73f35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/crates/relay-bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async fn handle_compiler_command(command: CompileCommand) -> Result<(), Error> {
.compile()
.await
.map_err(|err| Error::CompilerError {
details: format!("{:?}", err),
details: format!("{}", err),
})?;
}

Expand Down

0 comments on commit b73f35e

Please sign in to comment.