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

feat: hide stacktrace in case of failures #23

Merged
merged 3 commits into from
Jun 30, 2023
Merged

Conversation

Vacxe
Copy link
Owner

@Vacxe Vacxe commented Jun 30, 2023

Error default behavior example:

{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Package not found: com.github.vacxe.airqualitya.",
    "reason" : "notFound"
  } ],
  "message" : "Package not found: com.github.vacxe.airqualitya.",
  "status" : "NOT_FOUND"
}

Process finished with exit code 1

--debug=true :

com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
POST https://www.googleapis.com/androidpublisher/v3/applications/com.github.vacxe.airqualitya/edits
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Package not found: com.github.vacxe.airqualitya.",
    "reason" : "notFound"
  } ],
  "message" : "Package not found: com.github.vacxe.airqualitya.",
  "status" : "NOT_FOUND"
}
	at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:150)
	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1111)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
	at com.github.vacxe.googleplaycli.actions.Apks$DefaultImpls.apksList(Apks.kt:15)
	at com.github.vacxe.googleplaycli.PlayStoreApi.apksList(PlayStoreApi.kt:14)
	at com.github.vacxe.googleplaycli.Commands$Apks$List.run(Commands.kt:14)
	at com.github.vacxe.googleplaycli.Commands$Apks$List.run(Commands.kt:13)
	at com.github.vacxe.googleplaycli.core.BaseCommand.run(BaseCommand.kt:71)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:154)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:162)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:162)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:14)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:252)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:249)
	at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:267)
	at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:290)
	at com.github.vacxe.googleplaycli.PlayStoreCliKt.main(PlayStoreCli.kt:89)

Process finished with exit code 1

@Vacxe Vacxe force-pushed the hide-exceptions-messages branch from 019dc86 to 1afedfb Compare June 30, 2023 01:17
@Vacxe Vacxe force-pushed the hide-exceptions-messages branch from 1afedfb to 4f6a73b Compare June 30, 2023 01:21
@Vacxe Vacxe merged commit cf7b0e4 into master Jun 30, 2023
@Vacxe Vacxe deleted the hide-exceptions-messages branch June 30, 2023 03:14
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