Skip to content
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

Better error message on file not found #793

Closed
bootstraponline opened this issue May 16, 2020 · 0 comments · Fixed by #795
Closed

Better error message on file not found #793

bootstraponline opened this issue May 16, 2020 · 0 comments · Fixed by #795
Assignees
Milestone

Comments

@bootstraponline
Copy link
Contributor

$ flank android run --dump-shards
version: local_snapshot
revision: 881344f4a2f72a4ccb0187a269a38fc4a0b0538f

java.nio.file.NoSuchFileException: ./flank.yml
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.Files.newByteChannel(Files.java:361)
	at java.nio.file.Files.newByteChannel(Files.java:407)
	at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
	at java.nio.file.Files.newInputStream(Files.java:152)
	at java.nio.file.Files.newBufferedReader(Files.java:2784)
	at java.nio.file.Files.newBufferedReader(Files.java:2816)
	at ftl.args.AndroidArgs$Companion.load(AndroidArgs.kt:193)
	at ftl.cli.firebase.test.android.AndroidRunCommand.run(AndroidRunCommand.kt:45)
	at picocli.CommandLine.executeUserObject(CommandLine.java:1769)
	at picocli.CommandLine.access$900(CommandLine.java:145)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2150)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2144)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
	at picocli.CommandLine.execute(CommandLine.java:1904)
	at ftl.Main$Companion$main$1.invoke(Main.kt:53)
	at ftl.Main$Companion$main$1.invoke(Main.kt:43)
	at ftl.util.Utils.withGlobalExceptionHandling(Utils.kt:132)
	at ftl.Main$Companion.main(Main.kt:49)
	at ftl.Main.main(Main.kt)
@bootstraponline bootstraponline added this to the June milestone May 16, 2020
@adamfilipow92 adamfilipow92 self-assigned this May 18, 2020
adamfilipow92 added a commit that referenced this issue May 20, 2020
* release_notes, move file loading to function with custom exception

* Rename Yaml Loader to more generic File Loader

* Made changes requested by prs
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 a pull request may close this issue.

2 participants