Commit 9e5c282
committed
Use public REST URL prefix in 'ontology already exists' 409 error
The 409 error returned when creating an ontology with an existing acronym
interpolated ont.id directly, exposing the internal id_url_prefix
(http://data.bioontology.org/) instead of the portal's public URL.
Run the id through Base.replace_url_id_to_prefix so the message reports
the configured rest_url_prefix, matching normal serialized output.1 parent e2ad834 commit 9e5c282
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments