Skip to content

Commit d83763e

Browse files
authored
Merge pull request #230 from mschoettle/attachment-logging
Add hint about expired session cookie if attachment retrieval fails
2 parents 47336bf + 9416497 commit d83763e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gitlabHelper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ export class GitlabHelper {
133133
).data;
134134
return Buffer.from(data, 'binary');
135135
} catch (err) {
136-
console.error(`Could not download attachment #${relurl}: ${err.response.statusText}`);
136+
console.error(`Could not download attachment ${relurl}: ${err.response.statusText}`);
137+
console.error('Is your session cookie still valid?');
137138
return null;
138139
}
139140
}

0 commit comments

Comments
 (0)