Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: improve error logging for incomplete refresh terminal state
  • Loading branch information
Olexandr88 committed Dec 24, 2025
commit 4c332044c3ecb10ba47c85b5653bc847ac46606d
15 changes: 11 additions & 4 deletions src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,17 @@ export class DuneClient {
if (state === ExecutionState.COMPLETED) {
return this.exec.getExecutionResults(execution_id, args);
} else {
const message = `refresh (execution ${execution_id}) yields incomplete terminal state ${state}`;
// TODO - log the error in constructor
log.error(logPrefix, message);
throw new DuneError(message);
const message = `Refresh returned an incomplete terminal state`;

log.error(logPrefix, {
message,
execution_id,
state,
});

throw new DuneError(
`${message} (execution_id=${execution_id}, state=${state})`
);
}
}

Expand Down
Loading