From 42785352654d64cd69c6571c0286fe7006864474 Mon Sep 17 00:00:00 2001 From: jbrass Date: Mon, 10 Feb 2025 01:01:56 +0100 Subject: [PATCH] Show/Unassign Fix --- ShowCommand.cpp | 2 +- UnassignCommand.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ShowCommand.cpp b/ShowCommand.cpp index 90424c0..a8c4033 100644 --- a/ShowCommand.cpp +++ b/ShowCommand.cpp @@ -33,7 +33,7 @@ namespace commands { else if (data_type == "task") { Task *task = mgr->get_task(show_id); if (task == nullptr) { - throw Error(401, "Eine solche BenutzerIn existiert nicht."); + throw Error(402, "Eine solche Aufgabe existiert nicht."); } AddTask unid_task = {*task}; cout << unid_task; diff --git a/UnassignCommand.cpp b/UnassignCommand.cpp index 08c82a0..d0b90b6 100644 --- a/UnassignCommand.cpp +++ b/UnassignCommand.cpp @@ -23,7 +23,7 @@ namespace commands throw Error(401, "Eine solche BenutzerIn existiert nicht."); const Task* t = mgr->get_task(task_id); if (!t) - throw Error(401, "Eine solche Zuordnung existiert nicht."); + throw Error(301, "Eine solche Zuordnung existiert nicht."); if (!mgr->assignment_exists(user_id, task_id)) throw Error(302, "Eine solche Zuordnung existiert bereits."); Assignment as = {user_id, task_id};