Skip to content

Commit

Permalink
show save to exchange error
Browse files Browse the repository at this point in the history
  • Loading branch information
navix committed May 2, 2024
1 parent 1b981ad commit b8bd93c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/ngxe/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ export class AppComponent implements OnInit {
branch: this.project.data!.branch || '',
body: this.project.data,
})
.pipe(
catchError(err => {
alert(`Exchange API error!`);
console.error(err);
return EMPTY;
}),
)
.subscribe(res => {
if (res) {
alert(`Project saved. Sharing URL: https://ngxe.oleksanovyk.com/?exp=${formatExchangeFile(this.project.data!.config.name)}&exb=${formatExchangeFile(this.project.data!.branch)}`);
Expand Down

0 comments on commit b8bd93c

Please sign in to comment.