Skip to content

Commit 3ff0b68

Browse files
author
A M Chung
committed
minor updates after testing
1 parent cd6b47e commit 3ff0b68

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

lib/empty-example/sketch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ function setup() {
44

55
function draw() {
66
// put drawing code here
7-
arc(1, 1, 10.5, 10, b, Math.PI, 'pie');
87
}

src/core/friendly_errors/validate_params.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ if (typeof IS_MINIFIED !== 'undefined') {
652652
// i18next-extract-mark-context-next-line ["EMPTY_VAR", "TOO_MANY_ARGUMENTS", "TOO_FEW_ARGUMENTS", "WRONG_TYPE"]
653653
message = translator('fes.friendlyParamError.type', translationObj);
654654

655-
p5._friendlyError(`${message}.`, func, 3);
655+
p5._friendlyError(`${message}`, func, 3);
656656
}
657657
};
658658

translations/en/translation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"cannotAccess": "\n{{location}} \"{{symbol}}\" is used before declaration. Make sure you have declared the variable before using it.\n\n+ More info: {{url}}",
2626
"notDefined": "\n{{location}} \"{{symbol}}\" is not defined in the current scope. If you have defined it in your code, you should check its scope, spelling, and letter-casing (JavaScript is case-sensitive).\n\n+ More info: {{url}}"
2727
},
28-
"stackSubseq": "{{location}} Called from line {{line}} in \"{{func}}\" in {{file}} \n",
29-
"stackTop": "{{location}} Error at line {{line}} in \"{{func}}\" in {{file}} \n",
28+
"stackSubseq": "└[{{location}}] \n\t Called from line {{line}} in {{func}}()\n",
29+
"stackTop": "┌[{{location}}] \n\t Error at line {{line}} in {{func}}()\n",
3030
"syntax": {
3131
"badReturnOrYield": "\nSyntax Error - return lies outside of a function. Make sure you’re not missing any brackets, so that return lies inside a function.\n\n+ More info: {{url}}",
3232
"invalidToken": "\nSyntax Error - Found a symbol that JavaScript doesn't recognize or didn't expect at it's place.\n\n+ More info: {{url}}",
@@ -43,7 +43,7 @@
4343
}
4444
},
4545
"libraryError": "{{location}} An error with message \"{{error}}\" occurred inside the p5js library when {{func}} was called. If not stated otherwise, it might be an issue with the arguments passed to {{func}}.",
46-
"location": "[{{file}}: line {{line}}]",
46+
"location": "[{{file}}, line {{line}}]",
4747
"misspelling": "{{location}} It seems that you may have accidentally written \"{{name}}\" instead of \"{{actualName}}\". Please correct it to {{actualName}} if you wish to use the {{type}} from p5.js.",
4848
"misspelling_plural": "{{location}} It seems that you may have accidentally written \"{{name}}\".\nYou may have meant one of the following: \n{{suggestions}}",
4949
"misusedTopLevel": "Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\n\n+ More info: {{url}}",

translations/ko/translation.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
"xml": "XML 파일을 로드하는 중에 문제가 발생했습니다. {{suggestion}}"
1616
},
1717
"friendlyParamError": {
18-
"type_EMPTY_VAR": "{{location}} {{formatType}} 타입 값을 받는 {{func}}}()의 {{position}} 매개변수(parameter)에 아무 값도 전달되지 않았습니다. 범위(scope)와 관련된 문제일 수 있습니다.\n\n+ 추가 정보: {{url}}",
18+
"type_EMPTY_VAR": "{{location}} {{formatType}} 타입 값을 받는 {{func}}()의 {{position}} 매개변수(parameter)에 아무 값도 전달되지 않았습니다. 범위(scope)와 관련된 문제일 수 있습니다.\n\n+ 추가 정보: {{url}}",
1919
"type_TOO_FEW_ARGUMENTS": "{{location}} 최소 {{minParams}}개의 인수(argument)를 받는 함수 {{func}}()에 인수가 {{argCount}}개만 입력되었습니다.",
2020
"type_TOO_MANY_ARGUMENTS": "{{location}} 최대 {{maxParams}}개의 인수(argument)를 받는 함수 {{func}}()에 인수가 {{argCount}}개나 입력되었습니다.",
21-
"type_WRONG_TYPE": "{{location}} {{formatType}} 타입의 값을 받는 {{func}}() {{position}} 매개변수(parameter)에 {{argType}} 타입의 값이 입력되었습니다."
21+
"type_WRONG_TYPE": "{{location}} {{formatType}} 타입의 값을 받는 {{func}}() {{position}} 매개변수(parameter)에 {{argType}} 타입의 값이 입력되었습니다."
2222
},
2323
"globalErrors": {
2424
"reference": {
2525
"cannotAccess": "\n{{location}} \"{{symbol}}\"가 선언되지 않은 채 사용되었습니다. 변수를 사용하기 전, 먼저 선언했는지 확인해보세요.\n\n+ 추가 정보: {{url}}",
2626
"notDefined": "\n{{location}} \"{{symbol}}\"은 현재 범위(scope) 안에 정의되지 않았습니다. 만약 정의를 했다면, 해당 범위와 오탈자, 대소문자 등을 확인해보세요 (자바스크립트에서는 대소문자를 구분합니다).\n\n+ 추가 정보: {{url}}"
2727
},
28-
"stackSubseq": "{{location}} {{file}}의 함수 \"{{func}}\"에 있는 {{line}} 줄에서 호출.\n",
29-
"stackTop": "{{location}} {{file}}의 함수 \"{{func}}\"에 있는 {{line}} 줄에서 오류 발생.\n",
28+
"stackSubseq": "└[{{location}}] \n\t {{func}}()에 있는 {{line}}에서 호출\n",
29+
"stackTop": "┌[{{location}}] \n\t {{func}}()에 있는 {{line}}에서 오류 발생\n",
3030
"syntax": {
3131
"badReturnOrYield": "\n구문 오류 - 대괄호가 제대로 쓰였는지 확인해 본 후, return을 함수 안에 넣어주세요.\n\n+ 추가 정보: {{url}}",
3232
"invalidToken": "\n구문 오류 - 자바스크립트가 인식할 수 없거나, 적합하지 않은 기호나 문구가 입력되었습니다.\n\n+ 추가 정보: {{url}}",
@@ -43,7 +43,7 @@
4343
}
4444
},
4545
"libraryError": "{{location}} 함수 {{func}}가 호출되었을 때, \"{{error}}\" 오류가 p5js 라이브러리 내에서 발생했습니다. 함수 {{func}}에 전달한 인수(argument)가 문제일 수 있습니다.",
46-
"location": "[{{file}}: 줄{{line}}]",
46+
"location": "[{{file}}, 줄{{line}}]",
4747
"misspelling": "{{location}} 혹시 p5.js의 {{type}}를 사용하시려면 \"{{name}}\"를 {{actualName}}로 고쳐 보세요.",
4848
"misspelling_plural": "{{location}} 혹시 p5.js의 {{type}}를 사용하시려면 \"{{name}}\"를 다음 중 하나로 고쳐보세요: \n{{suggestions}}",
4949
"misusedTopLevel": "{{location}} 혹시 p5.js의 {{symbolType}} 타입 {{symbolName}}을 사용하셨나요? 그렇다면 {{symbolName}}을 작성 중인 setup() 함수의 대괄호 안으로 옮겨보세요.\n\n+ 추가 정보: {{url}}",

0 commit comments

Comments
 (0)