Commit 0251baa2b1e5cd15177e87c3de034dde7b1f03fb

Authored by Nikita Kulshreshtha
1 parent 76339e8c

returning error

400-SOURCECODE/AIAHTML5.API/Models/PixelLocator.cs
... ... @@ -14,7 +14,7 @@ namespace AIAHTML5.API.Models
14 14 {
15 15 try
16 16 {
17   - var client = new MongoClient("localhost:27017");
  17 + var client = new MongoClient();
18 18 var db = client.GetDatabase("AIAHTML5");
19 19  
20 20 var col = db.GetCollection<BsonDocument>("DAImages");
... ... @@ -44,7 +44,8 @@ namespace AIAHTML5.API.Models
44 44 }
45 45 catch (Exception e)
46 46 {
47   - return "error";
  47 + string error = e.Message+"..STACKTRACE: "+e.StackTrace;
  48 + return error;
48 49 }
49 50 }
50 51 }
... ...
400-SOURCECODE/AIAHTML5.API/Models/Users.cs
... ... @@ -63,7 +63,8 @@ namespace AIAHTML5.API.Models
63 63 logger.Fatal("Exception in AuthenticateUser for loginId =" + credentials["username"].ToString() + " and password= " + credentials["password"].ToString() + "Exception= " + e.Message);
64 64  
65 65 string errorMessage = AIAConstants.ERROR_IN_FECTHING_DETAILS;
66   - userDetails = errorMessage;
  66 + string error = "Message: " + e.Message + ", STACKTRACE: " + e.StackTrace;
  67 + userDetails = error;
67 68 }
68 69 return userDetails;
69 70 }
... ...
400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.dll
No preview for this file type
400-SOURCECODE/AIAHTML5.API/bin/AIAHTML5.API.pdb
No preview for this file type