Added more error handling and necessary functions

This commit is contained in:
2024-10-19 12:28:09 +02:00
parent d4e7bce5e2
commit f4dfd6d060
22 changed files with 317 additions and 122 deletions

View File

@@ -28,6 +28,6 @@ func NewContent(contentType int, mediaType string, content any) (Content, error)
case 3:
return newOutOfLineContent(mediaType, content)
default:
return nil, fmt.Errorf("%v is not a valid text type", contentType)
return nil, fmt.Errorf("error creating new content: %v is not a valid text type", contentType)
}
}