Closed dtgm closed 8 years ago
Attempt to auto fix 189 pkgs:
while read line; do
echo $line >> /tmp/fixthrow-progress;
sed -i -r -e '/try \{/,/\} catch \{/{
s/try \{//;
s/ (.*)/\1/g;
}' \
-n -e '1h; 1!H; ${; g; s/\} catch \{\n throw \$_.Exception\n\}//;p;}' $line;
done < /tmp/fixthrow
Still need to fix
$ while read line; do grep '} catch {' $line -l | cut -d'/' -f1; done < /tmp/fixthrow
arduino
arduino-intel.handover
avastbrowsercleanup.new
freearc.install
iotdk.handover
jacksum
rssowl
thebrain.install.work
Pre-fix
ToDo
try {
} catch {
Post-fix