Skip to content

Commit 80c7f28

Browse files
committed
Dump unresolved units to a file
1 parent dd32872 commit 80c7f28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

load-units.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,14 @@
122122
} while ($n_todo != $new_n_todo);
123123

124124
print "$new_n_todo units not inserted:\n";
125+
open my $unres, '>', "definitions.unresolved";
125126
foreach my $u (@todo) {
126127
if ($u->{is_prefix}) {
127128
print "Prefix $u->{unit}: $u->{def}\n";
128129
} else {
130+
print $unres "$u->{unit}\t$u->{def}\n";
129131
next if ($u->{error} =~ /dollar|euro|pence|quid|shilling/); # skip currencies so we can see the rest better
130132
print "$u->{unit}: $u->{def} ($u->{error})\n";
131133
}
132134
}
135+
close $unres;

0 commit comments

Comments
 (0)