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

Update deploy errorHandler #2108

Merged
merged 7 commits into from
Oct 18, 2023
Merged

Update deploy errorHandler #2108

merged 7 commits into from
Oct 18, 2023

Conversation

bz888
Copy link
Contributor

@bz888 bz888 commented Oct 17, 2023

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Should provide users with more readable error logging

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

@@ -30,9 +30,7 @@ export default class Delete extends Command {
deploymentID = await valueOrPrompt(deploymentID, 'Enter deployment ID', 'Deployment ID is required');

this.log(`Removing deployment: ${deploymentID}`);
const delete_output = await deleteDeployment(org, project_name, authToken, +deploymentID, ROOT_API_URL_PROD).catch(
(e) => this.error(e)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What did this.error do? Was that something from old oclif?

@@ -219,7 +225,7 @@ export async function uploadFile(
}
})
.catch((e) => {
throw new Error(`Publish project to default failed, ${e}`);
throw new Error(`ipfs write Publish project to default failed, ${e}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? Maybe fix the casing?

@jiqiang90 jiqiang90 merged commit 3c9c26c into main Oct 18, 2023
1 of 2 checks passed
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.

3 participants