Skip to content

Commit e756cc5

Browse files
committed
add data error in assignCommit
1 parent 9ad7e0b commit e756cc5

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)