Registry Mirror
Skip to content

Conversation

@michellemcdaniel

Copy link
Copy Markdown
Contributor

We need better error messages/handling in jit-format. This change
updates the following error scenarios:

  1. The specified coreclr path does not exist or is not a wellformed
    coreclr repo. We chech to make sure that both the directory exists, and
    that build.cmd and build.sh exist within the specified directory.

  2. jit-format was cancelled mid-run, specifically before the clang-tidy
    step has a chance to delete the newCompileCommands file. We now check to
    see if newCompileCommands already exists, and delete it before trying to
    move the full compileCommands database to that file. File.Delete will do
    nothing if the file does not exist.

Fixes #63.
Fixes #64.

We need better error messages/handling in jit-format. This change
updates the following error scenarios:

1) The specified coreclr path does not exist or is not a wellformed
coreclr repo. We chech to make sure that both the directory exists, and
that build.cmd and build.sh exist within the specified directory.

2) jit-format was cancelled mid-run, specifically before the clang-tidy
step has a chance to delete the newCompileCommands file. We now check to
see if newCompileCommands already exists, and delete it before trying to
move the full compileCommands database to that file. File.Delete will do
nothing if the file does not exist.

Fixes dotnet#63.
Fixes dotnet#64.
@michellemcdaniel

Copy link
Copy Markdown
Contributor Author

@BruceForstall @RussKeldorph PTAL

@BruceForstall

Copy link
Copy Markdown
Contributor

LGTM

@michellemcdaniel
michellemcdaniel merged commit 05bee43 into dotnet:master Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants