Skip to content

Commit

Permalink
Merge pull request desktop#1761 from desktop/trace-create-errors
Browse files Browse the repository at this point in the history
log an error with the context if creating a repository failed
  • Loading branch information
joshaber authored May 25, 2017
2 parents 70959ba + 722fd13 commit f36ff66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,12 @@ export class API {
const message: string = e.message
const error = await deserialize<IError>(message)
if (error) {
logError(`createRepository return an API error: ${JSON.stringify(error)}`, e)
throw new Error(error.message)
}
}

logError(`createRepository return an unknown error`, e)
throw e
}
}
Expand Down

0 comments on commit f36ff66

Please sign in to comment.