{"action":"opened","number":566,"pull_request":{"url":"https://api.github.com/repos/openstyles/stylus/pulls/566","id":232167325,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMTY3MzI1","html_url":"https://github.com/openstyles/stylus/pull/566","diff_url":"https://github.com/openstyles/stylus/pull/566.diff","patch_url":"https://github.com/openstyles/stylus/pull/566.patch","issue_url":"https://api.github.com/repos/openstyles/stylus/issues/566","number":566,"state":"open","locked":false,"title":"Show error in tooltip","user":{"login":"Mottie","id":136959,"node_id":"MDQ6VXNlcjEzNjk1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/136959?v=4","gravatar_id":"","url":"https://api.github.com/users/Mottie","html_url":"https://github.com/Mottie","followers_url":"https://api.github.com/users/Mottie/followers","following_url":"https://api.github.com/users/Mottie/following{/other_user}","gists_url":"https://api.github.com/users/Mottie/gists{/gist_id}","starred_url":"https://api.github.com/users/Mottie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mottie/subscriptions","organizations_url":"https://api.github.com/users/Mottie/orgs","repos_url":"https://api.github.com/users/Mottie/repos","events_url":"https://api.github.com/users/Mottie/events{/privacy}","received_events_url":"https://api.github.com/users/Mottie/received_events","type":"User","site_admin":false},"body":"I have a bunch of DeepDark styles installed and I noticed there's an extra double quote at the end of the variable:\r\n\r\n    @var color custom-main-color \"Custom main color\" #00adee\"\r\n\r\nIt was ignored before, but since we added color validation it throws an error and prevents updating the style. The error reported is `[object Object]`\r\n\r\n![](https://user-images.githubusercontent.com/136959/48746162-ca84fb00-ec33-11e8-93d9-d9427c2f68de.png)\r\n\r\nThis PR fixes the tooltip to show the correct message:\r\n\r\n![](https://user-images.githubusercontent.com/136959/48746170-d8d31700-ec33-11e8-8775-15ff690a9cac.png)\r\n\r\nIs this work-around sufficient? Or do we need to have the metadata parser pass a string instead of an error object?\r\n\r\nNote: I open an issue for [DuckDuckGo-DeepDark](https://gitlab.com/RaitaroH/DuckDuckGo-DeepDark/issues/1) but didn't bother with the other styles since they all have the same error.","created_at":"2018-11-20T01:50:09Z","updated_at":"2018-11-20T01:50:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openstyles/stylus/pulls/566/commits","review_comments_url":"https://api.github.com/repos/openstyles/stylus/pulls/566/comments","review_comment_url":"https://api.github.com/repos/openstyles/stylus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstyles/stylus/issues/566/comments","statuses_url":"https://api.github.com/repos/openstyles/stylus/statuses/f2e1357b3cddb0c8ff67644f9704314218893086","head":{"label":"openstyles:fix-update-error","ref":"fix-update-error","sha":"f2e1357b3cddb0c8ff67644f9704314218893086","user":{"login":"openstyles","id":29350089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzUwMDg5","avatar_url":"https://avatars2.githubusercontent.com/u/29350089?v=4","gravatar_id":"","url":"https://api.github.com/users/openstyles","html_url":"https://github.com/openstyles","followers_url":"https://api.github.com/users/openstyles/followers","following_url":"https://api.github.com/users/openstyles/following{/other_user}","gists_url":"https://api.github.com/users/openstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/openstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstyles/subscriptions","organizations_url":"https://api.github.com/users/openstyles/orgs","repos_url":"https://api.github.com/users/openstyles/repos","events_url":"https://api.github.com/users/openstyles/events{/privacy}","received_events_url":"https://api.github.com/users/openstyles/received_events","type":"Organization","site_admin":false},"repo":{"id":78330996,"node_id":"MDEwOlJlcG9zaXRvcnk3ODMzMDk5Ng==","name":"stylus","full_name":"openstyles/stylus","private":false,"owner":{"login":"openstyles","id":29350089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzUwMDg5","avatar_url":"https://avatars2.githubusercontent.com/u/29350089?v=4","gravatar_id":"","url":"https://api.github.com/users/openstyles","html_url":"https://github.com/openstyles","followers_url":"https://api.github.com/users/openstyles/followers","following_url":"https://api.github.com/users/openstyles/following{/other_user}","gists_url":"https://api.github.com/users/openstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/openstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstyles/subscriptions","organizations_url":"https://api.github.com/users/openstyles/orgs","repos_url":"https://api.github.com/users/openstyles/repos","events_url":"https://api.github.com/users/openstyles/events{/privacy}","received_events_url":"https://api.github.com/users/openstyles/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openstyles/stylus","description":"Stylus - Userstyles Manager","fork":false,"url":"https://api.github.com/repos/openstyles/stylus","forks_url":"https://api.github.com/repos/openstyles/stylus/forks","keys_url":"https://api.github.com/repos/openstyles/stylus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstyles/stylus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstyles/stylus/teams","hooks_url":"https://api.github.com/repos/openstyles/stylus/hooks","issue_events_url":"https://api.github.com/repos/openstyles/stylus/issues/events{/number}","events_url":"https://api.github.com/repos/openstyles/stylus/events","assignees_url":"https://api.github.com/repos/openstyles/stylus/assignees{/user}","branches_url":"https://api.github.com/repos/openstyles/stylus/branches{/branch}","tags_url":"https://api.github.com/repos/openstyles/stylus/tags","blobs_url":"https://api.github.com/repos/openstyles/stylus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstyles/stylus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstyles/stylus/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstyles/stylus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstyles/stylus/statuses/{sha}","languages_url":"https://api.github.com/repos/openstyles/stylus/languages","stargazers_url":"https://api.github.com/repos/openstyles/stylus/stargazers","contributors_url":"https://api.github.com/repos/openstyles/stylus/contributors","subscribers_url":"https://api.github.com/repos/openstyles/stylus/subscribers","subscription_url":"https://api.github.com/repos/openstyles/stylus/subscription","commits_url":"https://api.github.com/repos/openstyles/stylus/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstyles/stylus/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstyles/stylus/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstyles/stylus/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstyles/stylus/contents/{+path}","compare_url":"https://api.github.com/repos/openstyles/stylus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstyles/stylus/merges","archive_url":"https://api.github.com/repos/openstyles/stylus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstyles/stylus/downloads","issues_url":"https://api.github.com/repos/openstyles/stylus/issues{/number}","pulls_url":"https://api.github.com/repos/openstyles/stylus/pulls{/number}","milestones_url":"https://api.github.com/repos/openstyles/stylus/milestones{/number}","notifications_url":"https://api.github.com/repos/openstyles/stylus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstyles/stylus/labels{/name}","releases_url":"https://api.github.com/repos/openstyles/stylus/releases{/id}","deployments_url":"https://api.github.com/repos/openstyles/stylus/deployments","created_at":"2017-01-08T08:35:15Z","updated_at":"2018-11-19T15:07:30Z","pushed_at":"2018-11-20T01:34:56Z","git_url":"git://github.com/openstyles/stylus.git","ssh_url":"git@github.com:openstyles/stylus.git","clone_url":"https://github.com/openstyles/stylus.git","svn_url":"https://github.com/openstyles/stylus","homepage":"https://add0n.com/stylus.html","size":9968,"stargazers_count":1429,"watchers_count":1429,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"archived":false,"open_issues_count":61,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":94,"open_issues":61,"watchers":1429,"default_branch":"master"}},"base":{"label":"openstyles:master","ref":"master","sha":"df2b08a75aa3f2eec532e66a7f11ccc6d8f31374","user":{"login":"openstyles","id":29350089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzUwMDg5","avatar_url":"https://avatars2.githubusercontent.com/u/29350089?v=4","gravatar_id":"","url":"https://api.github.com/users/openstyles","html_url":"https://github.com/openstyles","followers_url":"https://api.github.com/users/openstyles/followers","following_url":"https://api.github.com/users/openstyles/following{/other_user}","gists_url":"https://api.github.com/users/openstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/openstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstyles/subscriptions","organizations_url":"https://api.github.com/users/openstyles/orgs","repos_url":"https://api.github.com/users/openstyles/repos","events_url":"https://api.github.com/users/openstyles/events{/privacy}","received_events_url":"https://api.github.com/users/openstyles/received_events","type":"Organization","site_admin":false},"repo":{"id":78330996,"node_id":"MDEwOlJlcG9zaXRvcnk3ODMzMDk5Ng==","name":"stylus","full_name":"openstyles/stylus","private":false,"owner":{"login":"openstyles","id":29350089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzUwMDg5","avatar_url":"https://avatars2.githubusercontent.com/u/29350089?v=4","gravatar_id":"","url":"https://api.github.com/users/openstyles","html_url":"https://github.com/openstyles","followers_url":"https://api.github.com/users/openstyles/followers","following_url":"https://api.github.com/users/openstyles/following{/other_user}","gists_url":"https://api.github.com/users/openstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/openstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstyles/subscriptions","organizations_url":"https://api.github.com/users/openstyles/orgs","repos_url":"https://api.github.com/users/openstyles/repos","events_url":"https://api.github.com/users/openstyles/events{/privacy}","received_events_url":"https://api.github.com/users/openstyles/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openstyles/stylus","description":"Stylus - Userstyles Manager","fork":false,"url":"https://api.github.com/repos/openstyles/stylus","forks_url":"https://api.github.com/repos/openstyles/stylus/forks","keys_url":"https://api.github.com/repos/openstyles/stylus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstyles/stylus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstyles/stylus/teams","hooks_url":"https://api.github.com/repos/openstyles/stylus/hooks","issue_events_url":"https://api.github.com/repos/openstyles/stylus/issues/events{/number}","events_url":"https://api.github.com/repos/openstyles/stylus/events","assignees_url":"https://api.github.com/repos/openstyles/stylus/assignees{/user}","branches_url":"https://api.github.com/repos/openstyles/stylus/branches{/branch}","tags_url":"https://api.github.com/repos/openstyles/stylus/tags","blobs_url":"https://api.github.com/repos/openstyles/stylus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstyles/stylus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstyles/stylus/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstyles/stylus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstyles/stylus/statuses/{sha}","languages_url":"https://api.github.com/repos/openstyles/stylus/languages","stargazers_url":"https://api.github.com/repos/openstyles/stylus/stargazers","contributors_url":"https://api.github.com/repos/openstyles/stylus/contributors","subscribers_url":"https://api.github.com/repos/openstyles/stylus/subscribers","subscription_url":"https://api.github.com/repos/openstyles/stylus/subscription","commits_url":"https://api.github.com/repos/openstyles/stylus/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstyles/stylus/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstyles/stylus/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstyles/stylus/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstyles/stylus/contents/{+path}","compare_url":"https://api.github.com/repos/openstyles/stylus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstyles/stylus/merges","archive_url":"https://api.github.com/repos/openstyles/stylus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstyles/stylus/downloads","issues_url":"https://api.github.com/repos/openstyles/stylus/issues{/number}","pulls_url":"https://api.github.com/repos/openstyles/stylus/pulls{/number}","milestones_url":"https://api.github.com/repos/openstyles/stylus/milestones{/number}","notifications_url":"https://api.github.com/repos/openstyles/stylus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstyles/stylus/labels{/name}","releases_url":"https://api.github.com/repos/openstyles/stylus/releases{/id}","deployments_url":"https://api.github.com/repos/openstyles/stylus/deployments","created_at":"2017-01-08T08:35:15Z","updated_at":"2018-11-19T15:07:30Z","pushed_at":"2018-11-20T01:34:56Z","git_url":"git://github.com/openstyles/stylus.git","ssh_url":"git@github.com:openstyles/stylus.git","clone_url":"https://github.com/openstyles/stylus.git","svn_url":"https://github.com/openstyles/stylus","homepage":"https://add0n.com/stylus.html","size":9968,"stargazers_count":1429,"watchers_count":1429,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"archived":false,"open_issues_count":61,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":94,"open_issues":61,"watchers":1429,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/566"},"html":{"href":"https://github.com/openstyles/stylus/pull/566"},"issue":{"href":"https://api.github.com/repos/openstyles/stylus/issues/566"},"comments":{"href":"https://api.github.com/repos/openstyles/stylus/issues/566/comments"},"review_comments":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/566/comments"},"review_comment":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstyles/stylus/pulls/566/commits"},"statuses":{"href":"https://api.github.com/repos/openstyles/stylus/statuses/f2e1357b3cddb0c8ff67644f9704314218893086"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":4,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"Mottie"}}