-
Notifications
You must be signed in to change notification settings - Fork 69
Fix #677 Error if project is in OneDrive #680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
573fcad
search project initialised directory for onedrive in execute function
spacey-sooty 9aa10ec
apply changes from review
spacey-sooty a85d4a9
fix error being supressed
spacey-sooty ca2c585
use runtime exception in onedrive error
spacey-sooty abf64b3
add print in error and make check case insensitive
spacey-sooty 6d9b7e8
use Paths.get instead of user.dir
spacey-sooty 8a55882
move check to apply method and use gradle method instead of java method
spacey-sooty e551c83
remove unnecessary imports from previous commit
spacey-sooty bc8d841
remove another unnecessary import
spacey-sooty 1e04d0d
fix printed directory
spacey-sooty cd1603f
Merge branch 'main' into onedrive-fix
spacey-sooty fa90f32
catch and print error instead of throwing it
spacey-sooty e900c37
try catch check only throw if try catch succeeds
spacey-sooty 35af31c
fix items from review
spacey-sooty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/edu/wpi/first/gradlerio/OneDriveException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package edu.wpi.first.gradlerio; | ||
|
||
import java.lang.Exception; | ||
|
||
public class OneDriveException extends java.lang.Exception { | ||
public OneDriveException() { | ||
super(String.format("Error cannot create project inside OneDrive. Project Directory = %S", System.getProperty("user.dir"))); | ||
} | ||
|
||
public void PrintMessage() { | ||
System.out.println(String.format("Error cannot create project inside OneDrive. Project Directory = %S", System.getProperty("user.dir"))); | ||
} | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.