Skip to content

Commit 0d0870e

Browse files
Modify some messages
1 parent ac7d687 commit 0d0870e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

assets/scripts/articles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import sanitizeHtml from 'sanitize-html';
33

44
/**
55
* Gets an article as an HTML string.
6+
* Note: only works in client-side.
67
* @param name
78
* The name of the article.
89
*

server/api/check-article.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default defineEventHandler(async (event) => {
9696
} else {
9797
throw createError({
9898
statusCode: 500,
99-
statusMessage: "Failed to determine the base URL. Try setting the 'VERCEL_URL' or 'URL' environment variable into something like 'example.com'."
99+
statusMessage: "Failed to determine the base URL. If you are the webmaster, try setting the 'VERCEL_URL' or 'URL' environment variable into something like 'example.com'."
100100
});
101101
}
102102

server/api/fetch-article.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default defineEventHandler(async (event) => {
9696
} else {
9797
throw createError({
9898
statusCode: 500,
99-
statusMessage: "Failed to determine the base URL. Try setting the 'VERCEL_URL' or 'URL' environment variable into something like 'example.com'."
99+
statusMessage: "Failed to determine the base URL. If you are the webmaster, try setting the 'VERCEL_URL' or 'URL' environment variable into something like 'example.com'."
100100
});
101101
}
102102

0 commit comments

Comments
 (0)