Fix missing error log
This commit is contained in:
		
							parent
							
								
									162f54b934
								
							
						
					
					
						commit
						dabb1be2f0
					
				@ -124,6 +124,7 @@ func sessionHandler(next echo.HandlerFunc) echo.HandlerFunc {
 | 
			
		||||
			}
 | 
			
		||||
			c.Set("session", Session{pubkey})
 | 
			
		||||
		} else if err != sql.ErrNoRows {
 | 
			
		||||
			c.Logger().Error(err)
 | 
			
		||||
			return c.JSON(http.StatusInternalServerError, map[string]string{"status": "ERROR", "reason": "internal server error"})
 | 
			
		||||
		}
 | 
			
		||||
		return next(c)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user