mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Show nice error when environment is not set up (#7778)
Adds a nicer error message with a link for owners who press Push to Git without having a repository connected yet.
This commit is contained in:
committed by
GitHub
parent
67a88914f2
commit
5835e055d3
@@ -593,7 +593,18 @@ export default defineComponent({
|
||||
data: { eventBus: this.eventBus, status },
|
||||
});
|
||||
} catch (error) {
|
||||
this.showError(error, this.$locale.baseText('error'));
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
switch (error.message) {
|
||||
case 'source_control_not_connected':
|
||||
this.showError(
|
||||
{ ...error, message: '' },
|
||||
this.$locale.baseText('settings.sourceControl.error.not.connected.title'),
|
||||
this.$locale.baseText('settings.sourceControl.error.not.connected.message'),
|
||||
);
|
||||
break;
|
||||
default:
|
||||
this.showError(error, this.$locale.baseText('error'));
|
||||
}
|
||||
} finally {
|
||||
this.stopLoading();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user