Commit 1d45ae6f authored by jerasmus's avatar jerasmus

Improve fork error message

Improved the error message when forking a project.

Changelog: changed
parent 13c7ec0d
...@@ -222,7 +222,11 @@ export default { ...@@ -222,7 +222,11 @@ export default {
redirectTo(data.web_url); redirectTo(data.web_url);
return; return;
} catch (error) { } catch (error) {
createFlash({ message: error }); createFlash({
message: s__(
'ForkProject|An error occurred while forking the project. Please try again.',
),
});
} }
}, },
}, },
......
...@@ -14332,6 +14332,9 @@ msgstr "" ...@@ -14332,6 +14332,9 @@ msgstr ""
msgid "ForkProject|A fork is a copy of a project." msgid "ForkProject|A fork is a copy of a project."
msgstr "" msgstr ""
msgid "ForkProject|An error occurred while forking the project. Please try again."
msgstr ""
msgid "ForkProject|Cancel" msgid "ForkProject|Cancel"
msgstr "" msgstr ""
......
...@@ -356,7 +356,7 @@ describe('ForkForm component', () => { ...@@ -356,7 +356,7 @@ describe('ForkForm component', () => {
expect(urlUtility.redirectTo).not.toHaveBeenCalled(); expect(urlUtility.redirectTo).not.toHaveBeenCalled();
expect(createFlash).toHaveBeenCalledWith({ expect(createFlash).toHaveBeenCalledWith({
message: dummyError, message: 'An error occurred while forking the project. Please try again.',
}); });
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment