{"record":{"id":"cda9af9c33d24c94","repo":"phacility/phabricator","slug":"project-colors-must-include-one-color-marked-as-th","errorCode":null,"errorMessage":"Project colors must include one color marked as the \"%s\" color, but no such color exists.","messagePattern":"Project colors must include one color marked as the \"(.+?)\" color, but no such color exists\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/project/icon/PhabricatorProjectIconSet.php","lineNumber":500,"sourceCode":"      }\n\n      if (idx($value, 'default')) {\n        if ($default === null) {\n          $default = $value;\n        } else {\n          $original_key = $default['key'];\n          throw new Exception(\n            pht(\n              'Two different colors (\"%s\", \"%s\") are marked as the default '.\n              'color. Only one color may be marked as the default.',\n              $key,\n              $original_key));\n        }\n      }\n    }\n\n    if ($default === null) {\n      throw new Exception(\n        pht(\n          'Project colors must include one color marked as the \"%s\" color, '.\n          'but no such color exists.',\n          'default'));\n    }\n\n  }\n\n}\n","sourceCodeStart":482,"sourceCodeEnd":510,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/project/icon/PhabricatorProjectIconSet.php#L482-L510","documentation":"Error \"Project colors must include one color marked as the \"%s\" color, but no such color exists.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:500 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}