Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4924)

Issue 6488059: code review 6488059: codereview.py: Better error handling. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by luriel
Modified:
11 years, 7 months ago
Reviewers:
CC:
adg, rsc, golang-dev
Visibility:
Public.

Description

codereview.py: Better error handling. Raise Abort() exceptions instead of returning strings that are converted into Abort()s by the hgcommand() decorator. This gives us back proper error messages for incorrect number of arguments. Left a 'dummy' hgcommand decorator in place as a way to document what functions are hg commands, and just in case we need some other kind of hack in the future.

Patch Set 1 #

Patch Set 2 : diff -r e6da0262840c https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r e6da0262840c https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r e6da0262840c https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r e6da0262840c https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r e6da0262840c https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -45 lines) Patch
M lib/codereview/codereview.py View 1 2 3 4 17 chunks +32 lines, -45 lines 0 comments Download

Messages

Total messages: 5
luriel
Hello adg@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 8 months ago (2012-08-31 07:51:55 UTC) #1
rsc
Please complete a CLA as described at http://golang.org/doc/contribute.html#copyright. Thanks. Russ
11 years, 7 months ago (2012-09-01 14:21:29 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=6d3a917d2b85 *** codereview.py: correct error handling without decorator The decorator hides the ...
11 years, 7 months ago (2012-09-01 23:55:42 UTC) #3
luriel
*** Abandoned ***
11 years, 7 months ago (2012-09-21 11:03:10 UTC) #4
luriel
11 years, 7 months ago (2012-09-21 11:46:27 UTC) #5
Please ignore this, some hg command told me to run hg change -d for
unknown reasons, and i foolishly listened to it.

On Fri, Sep 21, 2012 at 1:03 PM,  <uriel@berlinblue.org> wrote:
> *** Abandoned ***
>
> http://codereview.appspot.com/6488059/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b