Item5494: exit value is inverted

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UploadToTWikiAddOn
Branches:
Reported By: TWiki:Main.DiabJerius
Waiting For:
Last Change By: GeorgeClark
The error code returned after uploadtotwiki exits is inverted (as far as the shell is concerned): it returns 1 upon success, 0 upon failure.

The exit code is derived from the return of uploadFile ():
 exit uploadFile( $comment, $hide, $link, $delay, $url, @files );

which returns an appropriately Perlish result (1 for success, 0 for failure). This change
 
 exit !uploadFile( $comment, $hide, $link, $delay, $url, @files );
resolves the problem.

-- TWiki:Main/DiabJerius - 02 Apr 2008

ItemTemplate edit

Summary exit value is inverted
ReportedBy TWiki:Main.DiabJerius
Codebase
SVN Range TWiki-5.0.0, Sun, 09 Mar 2008, build 16496
AppliesTo Extension
Component UploadToTWikiAddOn
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 25 Sep 2016, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy