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

fix: publish returns with exitcode 1 #5413

Merged
merged 1 commit into from
Sep 28, 2020
Merged

Conversation

akshbhu
Copy link
Contributor

@akshbhu akshbhu commented Sep 25, 2020

*Issue #2809

Description of changes:

  • Added try/catch block when angular build fails and return with exitcode 1

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@akshbhu akshbhu linked an issue Sep 25, 2020 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 25, 2020

Codecov Report

Merging #5413 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #5413    +/-   ##
========================================
  Coverage   59.12%   59.13%            
========================================
  Files         399      399            
  Lines       17974    17975     +1     
  Branches     3373     3560   +187     
========================================
+ Hits        10628    10629     +1     
+ Misses       6719     6698    -21     
- Partials      627      648    +21     
Impacted Files Coverage Δ
packages/amplify-cli-core/src/errors/index.ts 100.00% <100.00%> (ø)
packages/amplify-util-mock/src/api/api.ts 0.00% <0.00%> (ø)
packages/graphql-mapping-template/src/print.ts 34.65% <0.00%> (ø)
packages/amplify-util-mock/src/storage/storage.ts 0.00% <0.00%> (ø)
...ges/amplify-util-mock/src/CFNParser/stack/index.ts 0.00% <0.00%> (ø)
...es/amplify-util-mock/src/api/resolver-overrides.ts 0.00% <0.00%> (ø)
...es/graphql-transformer-core/src/stripDirectives.ts 35.29% <0.00%> (ø)
.../amplify-cli-core/src/state-manager/pathManager.ts 70.42% <0.00%> (ø)
.../amplify-util-mock/src/utils/lambda/loadMinimal.ts 0.00% <0.00%> (ø)
...graphql-transformer-core/src/TransformerContext.ts 26.10% <0.00%> (ø)
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c88bee1...463e51c. Read the comment docs.

}
} catch (e) {
context.print.error(`An error occurred during the publish operation`);
context.usageData.emitError(new FrontendBuildError());
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! @akshbhu

@akshbhu akshbhu merged commit 2064830 into aws-amplify:master Sep 28, 2020
r0zar pushed a commit to r0zar/amplify-cli that referenced this pull request Nov 19, 2020
@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli doesn't return exit code from publish (angular)
2 participants