@@ -1231,10 +1231,8 @@ class TicsCli {
12311231 if (input === '') {
12321232 throw Error('Parameter `project` is emtpy, TICS cannot run without it.');
12331233 }
1234- if (mode === tics_1.Mode.QSERVER) {
1235- if (input === 'auto') {
1236- throw Error(`Running TICS with project 'auto' is not possible with QServer`);
1237- }
1234+ if (input === 'auto' && mode === tics_1.Mode.QSERVER) {
1235+ throw Error(`Running TICS with project 'auto' is not possible with QServer`);
12381236 }
12391237 return input;
12401238 }
@@ -3130,8 +3128,8 @@ const response_1 = __nccwpck_require__(93590);
31303128const url_1 = __nccwpck_require__(71112);
31313129const http_client_1 = __nccwpck_require__(80939);
31323130/**
3133- * Gets the date of the last QServer run the viewer knows of .
3134- * @throws Error if project cannot be created or does not exist .
3131+ * Creates a project in the viewer if it does not exist .
3132+ * @throws Error if project cannot be created.
31353133 */
31363134async function createProject() {
31373135 const createProjectUrl = (0, url_1.joinUrl)(config_1.ticsConfig.baseUrl, `api/public/v1/fapi/Project?cfg=${config_1.ticsConfig.configuration}`);
@@ -3146,8 +3144,8 @@ async function createProject() {
31463144 logger_1.logger.header('Creating/updating the TICS project');
31473145 logger_1.logger.debug(`With ${createProjectUrl}`);
31483146 const response = await http_client_1.httpClient.put(createProjectUrl, JSON.stringify(body));
3149- if ( response.data.alertMessages.length > 0 ) {
3150- logger_1.logger.info(response.data.alertMessages[0] .header);
3147+ for (const message of response.data.alertMessages) {
3148+ logger_1.logger.info(message .header);
31513149 }
31523150 }
31533151 catch (error) {
0 commit comments