diff --git a/operation.go b/operation.go
index cbc6ce2cc..acb1d383e 100644
--- a/operation.go
+++ b/operation.go
@@ -387,7 +387,7 @@ func (operation *Operation) ParseParamComment(commentLine string, astFile *ast.F
 			param.Schema = schema
 		}
 	default:
-		return fmt.Errorf("%s is not supported paramType", paramType)
+		return fmt.Errorf("not supported paramType: %s", paramType)
 	}
 
 	err := operation.parseParamAttribute(commentLine, objectType, refType, paramType, &param)
diff --git a/parser.go b/parser.go
index d10003b01..1bd808e4e 100644
--- a/parser.go
+++ b/parser.go
@@ -1078,7 +1078,7 @@ func (parser *Parser) parseRouterAPIInfoComment(comments []*ast.Comment, fileInf
 		for _, comment := range comments {
 			err := operation.ParseComment(comment.Text, fileInfo.File)
 			if err != nil {
-				return fmt.Errorf("ParseComment error in file %s :%+v", fileInfo.Path, err)
+				return fmt.Errorf("ParseComment error in file %s for comment: '%s': %+v", fileInfo.Path, comment.Text, err)
 			}
 			if operation.State != "" && operation.State != parser.HostState {
 				return nil