{"record":{"id":"09c16f1d891fb699","repo":"phacility/phabricator","slug":"two-different-colors-s-s-are-marked-as-th","errorCode":null,"errorMessage":"Two different colors (\"%s\", \"%s\") are marked as the default color. Only one color may be marked as the default.","messagePattern":"Two different colors \\(\"(.+?)\", \"(.+?)\"\\) are marked as the default color\\. Only one color may be marked as the default\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/project/icon/PhabricatorProjectIconSet.php","lineNumber":489,"sourceCode":"    $keys = array();\n    foreach ($config as $idx => $value) {\n      $key = $value['key'];\n      if (isset($keys[$key])) {\n        throw new Exception(\n          pht(\n            'Project colors must have unique keys, but two icons share the '.\n            'same key (\"%s\").',\n            $key));\n      } else {\n        $keys[$key] = true;\n      }\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  }","sourceCodeStart":471,"sourceCodeEnd":507,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/project/icon/PhabricatorProjectIconSet.php#L471-L507","documentation":"Error \"Two different colors (\"%s\", \"%s\") are marked as the default color. Only one color may be marked as the default.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/project/icon/PhabricatorProjectIconSet.php:489 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"}