Skip to content

Commit

Permalink
Merge pull request #11 from Microsoft/master
Browse files Browse the repository at this point in the history
pull code
  • Loading branch information
chicm-ms authored Apr 11, 2019
2 parents 89e2986 + 58b259a commit 982ab62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nni_manager/training_service/pai/paiTrainingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,11 @@ class PAITrainingService implements TrainingService {
};
request(submitJobRequest, (error: Error, response: request.Response, body: any) => {
if (error || response.statusCode >= 400) {
this.log.error(`PAI Training service: Submit trial ${trialJobId} to PAI Cluster failed!`);
const errorMessage : string = error ? error.message :
`Submit trial ${trialJobId} failed, http code:${response.statusCode}, http body: ${response.body}`;
this.log.error(errorMessage);
trialJobDetail.status = 'FAILED';
deferred.reject(error ? error.message : 'Submit trial failed, http code: ' + response.statusCode);
deferred.reject(new Error(errorMessage));
} else {
trialJobDetail.submitTime = Date.now();
deferred.resolve(trialJobDetail);
Expand Down
2 changes: 2 additions & 0 deletions src/webui/src/static/style/probar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@
width: 240px;
font-size: 14px;
color: #212121;
word-wrap: break-word;
word-break: normal;
}

0 comments on commit 982ab62

Please sign in to comment.