{"record":{"id":"bac86e42dec21216","repo":"mileszs/wicked_pdf","slug":"command-failed-exitstatus-0-output-was-er","errorCode":null,"errorMessage":"#{command} failed (exitstatus 0). Output was: #{err}","messagePattern":"#(.+?) failed \\(exitstatus 0\\)\\. Output was: #(.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/wicked_pdf/progress.rb","lineNumber":32,"sourceCode":"      begin\n        PTY.spawn(command.join(' ')) do |stdout, _stdin, pid|\n          begin\n            stdout.sync\n            stdout.each_line(\"\\r\") do |line|\n              output << line.chomp\n              options[:progress].call(line) if options[:progress]\n            end\n          rescue Errno::EIO # rubocop:disable Lint/HandleExceptions\n            # child process is terminated, this is expected behaviour\n          ensure\n            ::Process.wait pid\n          end\n        end\n      rescue PTY::ChildExited\n        puts 'The child process exited!'\n      end\n      err = output.join('\\n')\n      raise \"#{command} failed (exitstatus 0). Output was: #{err}\" unless $CHILD_STATUS && $CHILD_STATUS.exitstatus.zero?\n    end\n  end\nend\n","sourceCodeStart":14,"sourceCodeEnd":36,"githubUrl":"https://github.com/mileszs/wicked_pdf/blob/bce498de547cdf00d037fdbec29fae844d69ee8e/lib/wicked_pdf/progress.rb#L14-L36","documentation":"Error \"#{command} failed (exitstatus 0). Output was: #{err}\" thrown in mileszs/wicked_pdf.","triggerScenarios":"Thrown at lib/wicked_pdf/progress.rb:32 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bce498de547cdf00d037fdbec29fae844d69ee8e","analyzedAt":"2026-08-23T09:58:24.694Z","schemaVersion":2},"datasetVersion":"2026-08-23T13:39:53.451Z"}