Skip to content

Commit f50723a

Browse files
Merge pull request #10 from terminusdb/review
add data error in assignCommit
2 parents 9ad7e0b + e756cc5 commit f50723a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/core/ChangeRequestDB.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ class ChangeRequestDB {
370370
return { status: 'Assigned' }
371371
} else {
372372
//this.logger.error(`I can not assign the indexing commit ${commit} to ${originalBranchLastCommit}`)
373-
return { status: 'Error', error_message: err.message }
373+
const message = err.response && err.response.data ? err.response.data : err.message
374+
return { status: 'Error', error_message: message }
374375
}
375376
}
376377
}

0 commit comments

Comments
 (0)