Skip to content

Commit

Permalink
exeptions
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloDiazSSA committed Nov 23, 2023
1 parent 54c791b commit ec6b2ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Controllers/AuthenticationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ private string GenerateToken(UserModel administrator)
#if DEBUG
Console.WriteLine(ex.Message);
#endif
return string.Empty;
throw;
}

Expand Down
4 changes: 4 additions & 0 deletions Controllers/CardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ public ClsResponse<dynamic> SetCard(CardDto card)
}
catch (Exception ex)

Check warning on line 135 in Controllers/CardController.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'ex' is declared but never used

Check warning on line 135 in Controllers/CardController.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'ex' is declared but never used
{
string msg = "No se pudo Loguear favor de reintentar más tarde.";
#if DEBUG
Console.WriteLine(ex.Message);
#endif
response.ErrorMessage = msg;
return response;
}

Expand Down
1 change: 1 addition & 0 deletions Entregable2-PD.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<ItemGroup>
<Folder Include=".github\workflows\" />
<Folder Include="Properties\PublishProfiles\" />
<Folder Include="Properties\ServiceDependencies\" />
</ItemGroup>

</Project>

0 comments on commit ec6b2ad

Please sign in to comment.