mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 03:32:40 +00:00
Add authors to locked brew error message
This commit is contained in:
@@ -194,7 +194,9 @@ const errorIndex = (props)=>{
|
|||||||
|
|
||||||
**Brew ID:** ${props.brew.brewId}
|
**Brew ID:** ${props.brew.brewId}
|
||||||
|
|
||||||
**Brew Title:** ${escape(props.brew.brewTitle)}`,
|
**Brew Title:** ${escape(props.brew.brewTitle)}
|
||||||
|
|
||||||
|
**Brew Authors:** ${escape(props.brew.brewAuthors.length ? props.brew.brewAuthors.join(',') : 'No listed authors')}`,
|
||||||
|
|
||||||
// ####### Admin page error #######
|
// ####### Admin page error #######
|
||||||
'52' : dedent`
|
'52' : dedent`
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ const api = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(stub?.lock && accessType === 'share') {
|
if(stub?.lock && accessType === 'share') {
|
||||||
throw { HBErrorCode: '51', code: stub.lock.code, message: stub.lock.shareMessage, brewId: stub.shareId, brewTitle: stub.title };
|
throw { HBErrorCode: '51', code: stub.lock.code, message: stub.lock.shareMessage, brewId: stub.shareId, brewTitle: stub.title, brewAuthors: stub.authors };
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there's a google id, get it if requesting the full brew or if no stub found yet
|
// If there's a google id, get it if requesting the full brew or if no stub found yet
|
||||||
|
|||||||
Reference in New Issue
Block a user