tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
291
fork
atom
a tool for shared writing and social publishing
291
fork
atom
overview
issues
27
pulls
pipelines
add even more logging
awarm.space
6 months ago
02824d72
90476728
+5
1 changed file
expand all
collapse all
unified
split
actions
publishToPublication.ts
+5
actions/publishToPublication.ts
···
93
93
let blob = await agent.com.atproto.repo.uploadBlob(binary, {
94
94
headers: { "Content-Type": binary.type },
95
95
});
96
96
+
if (!blob.success) {
97
97
+
console.log(blob);
98
98
+
console.log("Error uploading image: " + b.data.src);
99
99
+
throw new Error("Failed to upload image");
100
100
+
}
96
101
imageMap.set(b.data.src, blob.data.blob);
97
102
} catch (e) {
98
103
console.error(e);