spinner.fail(`Assignment creation error: An unknown error occurred while creating the assignment on Gitlab. Please try again later or contact an administrator.`);
caseDojoStatusCode.ASSIGNMENT_NAME_CONFLICT:
spinner.fail(`Assignment creation error: The assignment name already exists. Please choose another name.`);
break;
caseDojoStatusCode.ASSIGNMENT_CREATION_ERROR:
spinner.fail(`Assignment creation error: An unknown error occurred while creating the assignment (internal error message: ${error.response?.data?.description??'unknown error'}). Please try again later or contact an administrator.`);
spinner.fail(`The following users have reached the maximum number of exercise of this assignment : ${((error.response.dataas DojoBackendResponse<Array<Gitlab.UserSchema>>).data).map(user=>user.name).join(', ')}.`);
spinner.fail(`Exercise creation error: An unknown error occurred while creating the exercise on Gitlab. Please try again later or contact an administrator.`);
caseDojoStatusCode.EXERCISE_CREATION_ERROR:
spinner.fail(`Exercise creation error: An unknown error occurred while creating the exercise (internal error message: ${error.response?.data?.description??'unknown error'}). Please try again later or contact an administrator.`);
break;
caseDojoStatusCode.GITLAB_TEMPLATE_NOT_FOUND:
spinner.fail(`Template not found or access denied. Please check the template ID or url. Also, please check that the template have public/internal visibility or that your and Dojo account (${ClientsSharedConfig.gitlab.dojoAccount.username}) have at least reporter role to the template (if private).`);