PageRenderTime 5350ms queryTime 658ms sortTime 1875ms getByIdsTime 43ms findMatchingLines 63ms

100+ results results for 'ERROR repo:nickolas/mark' (5350 ms)

Not the results you expected?
IMLoginManager.java https://gitlab.com/lisit1003/TTAndroidClient | Java | 506 lines
                    
25import com.mogujie.tt.entity.User;
                    
26import com.mogujie.tt.imlib.common.ErrorCode;
                    
27import com.mogujie.tt.imlib.db.IMDbManager;
                    
248	public void onLoginFailed(int errorCode) {
                    
249		logger.i("login#onLoginFailed -> errorCode:%d", errorCode);
                    
250
                    
255		intent.putExtra(SysConstant.lOGIN_ERROR_CODE_KEY, errorCode);
                    
256		if (errorCode == ErrorCode.E_MSG_SERVER_ERROR_CODE) {
                    
257			intent.putExtra(SysConstant.KEY_MSG_SERVER_ERROR_CODE, msgServerErrorCode);
                    
280		Intent intent = new Intent(IMActions.ACTION_LOGIN_RESULT);
                    
281		intent.putExtra(SysConstant.lOGIN_ERROR_CODE_KEY, ErrorCode.S_OK);
                    
282		if (ctx != null) {
                    
479			// todo eric right now, no detail failed reason
                    
480			onLoginFailed(ErrorCode.E_MSG_SERVER_ERROR_CODE);
                    
481
                    
                
startup_stm32f102x6.s https://gitlab.com/balldir/BMP280_stm32f103 | Assembly | 355 lines
                    
122        DCD     I2C1_EV_IRQHandler        ; I2C1 Event
                    
123        DCD     I2C1_ER_IRQHandler        ; I2C1 Error
                    
124        DCD     0                         ; Reserved
                    
                
cpufreq.c https://bitbucket.org/sola/android_board_imx53qsb_kernel.git | C | 527 lines
                    
273
                    
274	printk(KERN_ERR "Error: No valid cpufreq relation\n");
                    
275	return cpu_freq_khz_max;
                    
                
module_test.rb https://gitlab.com/mpivaa/rails | Ruby | 509 lines
                    
157  def test_missing_delegation_target
                    
158    assert_raise(ArgumentError) do
                    
159      Name.send :delegate, :nowhere
                    
160    end
                    
161    assert_raise(ArgumentError) do
                    
162      Name.send :delegate, :noplace, :tos => :hollywood
                    
185  def test_delegation_prefix_with_instance_variable
                    
186    assert_raise ArgumentError do
                    
187      Class.new do
                    
208    project = Project.new(false, false)
                    
209    assert_raise(NoMethodError) { project.name }
                    
210  end
                    
213    rails = Project.new("Rails", "David")
                    
214    assert_raise(NoMethodError) { rails.name }
                    
215  end
                    
                
crc.c https://gitlab.com/envieidoc/advancedtomato2 | C | 290 lines
                    
67 * Reference: Dallas Semiconductor Application Note 27
                    
68 *   Williams, Ross N., "A Painless Guide to CRC Error Detection Algorithms", 
                    
69 *     ver 3, Aug 1993, ross@guest.adelaide.edu.au, Rocksoft Pty Ltd.,
                    
138 * Reference: Dallas Semiconductor Application Note 27
                    
139 *   Williams, Ross N., "A Painless Guide to CRC Error Detection Algorithms", 
                    
140 *     ver 3, Aug 1993, ross@guest.adelaide.edu.au, Rocksoft Pty Ltd.,
                    
206 * Reference: Dallas Semiconductor Application Note 27
                    
207 *   Williams, Ross N., "A Painless Guide to CRC Error Detection Algorithms", 
                    
208 *     ver 3, Aug 1993, ross@guest.adelaide.edu.au, Rocksoft Pty Ltd.,
                    
                
rtc-imxdi.c https://gitlab.com/jhalayashraj/nkernel | C | 522 lines
                    
56#define DSR_WCF   (1 << 8)       /* Write Complete Flag */
                    
57#define DSR_WEF   (1 << 7)       /* Write Error Flag */
                    
58#define DSR_CAF   (1 << 4)       /* Clock Alarm Flag */
                    
64#define DIER_WCIE (1 << 8)       /* Write Complete Interrupt Enable */
                    
65#define DIER_WEIE (1 << 7)       /* Write Error Interrupt Enable */
                    
66#define DIER_CAIE (1 << 4)       /* Clock Alarm Interrupt Enable */
                    
120/*
                    
121 * This function attempts to clear the dryice write-error flag.
                    
122 *
                    
122 *
                    
123 * A dryice write error is similar to a bus fault and should not occur in
                    
124 * normal operation.  Clearing the flag requires another write, so the root
                    
142	dev_err(&imxdi->pdev->dev,
                    
143			"ERROR: Cannot clear write-error flag!\n");
                    
144}
                    
                
NdkCaptureRequest.h https://gitlab.com/jhalayashraj/android_frameworks_av4 | C Header | 309 lines
                    
35#include <android/native_window.h>
                    
36#include "NdkCameraError.h"
                    
37#include "NdkCameraMetadata.h"
                    
96 *                                be filled in the output argument.</li>
                    
97 *         <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if window or output is NULL.</li></ul>
                    
98 *
                    
119 *         <li>{@link ACAMERA_OK} if the method call succeeds.</li>
                    
120 *         <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request or output is NULL.</li></ul>
                    
121 */
                    
134 *         <li>{@link ACAMERA_OK} if the method call succeeds.</li>
                    
135 *         <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request or output is NULL.</li></ul>
                    
136 */
                    
152 *         <li>{@link ACAMERA_OK} if the method call succeeds.</li>
                    
153 *         <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if metadata or entry is NULL.</li>
                    
154 *         <li>{@link ACAMERA_ERROR_METADATA_NOT_FOUND} if the capture request does not contain an
                    
                
fcntl-linux.h https://gitlab.com/infected_/linaro_aarch64-linux-gnu-5.3.x | C Header | 419 lines
                    
19#ifndef	_FCNTL_H
                    
20# error "Never use <bits/fcntl-linux.h> directly; include <fcntl.h> instead."
                    
21#endif
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 304 lines
                    
5{
                    
6	ShowError(GetMessage("BLOG_MODULE_NOT_INSTALL"));
                    
7	return;
                    
45$arResult["OK_MESSAGE"] = Array();
                    
46$arResult["ERROR_MESSAGE"] = Array();
                    
47
                    
66			{
                    
67				$errorMessage = "";
                    
68				$okMessage = "";
                    
126									else
                    
127										$errorMessage = GetMessage("BLOG_BLOG_BLOG_MES_SHOW_ERROR");
                    
128								}
                    
136				if ($errorMessage <> '')
                    
137					$arResult["ERROR_MESSAGE"][] = $errorMessage;
                    
138				if ($okMessage <> '')
                    
                
action.php https://gitlab.com/alexprowars/bitrix | PHP | 344 lines
                    
167	// Second exit point
                    
168		if (!empty($arError)):
                    
169			$DB->Rollback();
                    
211	}
                    
212	$MID = ForumAddMessage(($FORUM_TOPIC_ID > 0 ? "REPLY" : "NEW"), $arParams["FORUM_ID"], $FORUM_TOPIC_ID, 0, $arFieldsG, $strErrorMessage, $arNote, false,
                    
213		$post["captcha_word"], 0, $post["captcha_code"]);
                    
217			"code" => "message is not added 2",
                    
218			"title" => (empty($strErrorMessage) ? GetMessage("F_ERR_ADD_MESSAGE") : $strErrorMessage));
                    
219		$arResult['RESULT'] = false;
                    
233		if ($post["TOPIC_SUBSCRIBE"] == "Y"):
                    
234			ForumSubscribeNewMessagesEx($arParams["FORUM_ID"], $FORUM_TOPIC_ID, "N", $strErrorMessage, $strOKMessage);
                    
235			BXClearCache(true, "/bitrix/forum/user/".$USER->GetID()."/subscribe/");
                    
296		if ($res1):
                    
297			$arError[] = array(
                    
298				"code" => "file upload error",
                    
                
compiler.py https://bitbucket.org/pcelta/python-django.git | Python | 293 lines
                    
127                    alias = seen[model]
                    
128                except KeyError:
                    
129                    if model is proxied_model:
                    
                
tiocx.c https://github.com/zossso/cm-kernel.git | C | 562 lines
                    
115	struct cx_dev *cx_dev = to_cx_dev(dev);
                    
116	int error = 0;
                    
117
                    
120		if (id) {
                    
121			if ((error = cx_drv->probe(cx_dev, id)) < 0)
                    
122				return error;
                    
127
                    
128	return error;
                    
129}
                    
                
trajectory.py https://gitlab.com/keeeto/ase | Python | 380 lines
                    
92        if mode not in 'aw':
                    
93            raise ValueError('mode must be "w" or "a".')
                    
94        if self.master:
                    
140            elif len(atoms) != len(self.numbers):
                    
141                raise ValueError('Bad number of atoms!')
                    
142            elif (atoms.numbers != self.numbers).any():
                    
142            elif (atoms.numbers != self.numbers).any():
                    
143                raise ValueError('Bad atomic numbers!')
                    
144
                    
169                                                  allow_calculation=False)
                    
170                        except (NotImplementedError, KeyError):
                    
171                            # KeyError is needed for Jacapo.
                    
215            self.backend = affopen(filename, 'r')
                    
216        except InvalidAFFError:
                    
217            raise RuntimeError('This is not a valid ASE trajectory file. '
                    
                
lte-ie7.js https://gitlab.com/lkotoula/syndromidocs | JavaScript | 387 lines
                    
88			'icon_info_alt' : '&#x70;',
                    
89			'icon_error-oct_alt' : '&#x71;',
                    
90			'icon_error-circle_alt' : '&#x72;',
                    
90			'icon_error-circle_alt' : '&#x72;',
                    
91			'icon_error-triangle_alt' : '&#x73;',
                    
92			'icon_question_alt2' : '&#x74;',
                    
199			'icon_info' : '&#xe060;',
                    
200			'icon_error-circle' : '&#xe061;',
                    
201			'icon_error-oct' : '&#xe062;',
                    
201			'icon_error-oct' : '&#xe062;',
                    
202			'icon_error-triangle' : '&#xe063;',
                    
203			'icon_question_alt' : '&#xe064;',
                    
                
i3200_edac.c https://gitlab.com/openbar/rpi-linux | C | 550 lines
                    
45
                    
46#define I3200_ERRSTS		0xc8	/* Error Status Register (16b)
                    
47		 *
                    
60		 *  6:2  reserved
                    
61		 *  1    Multi-bit DRAM ECC Error Flag (DMERR)
                    
62		 *  0    Single-bit DRAM ECC Error Flag (DSERR)
                    
79
                    
80#define I3200_C0ECCERRLOG	0x280	/* Channel 0 ECC Error Log (64b)
                    
81		 *
                    
81		 *
                    
82		 * 63:48 Error Column Address (ERRCOL)
                    
83		 * 47:32 Error Row Address (ERRROW)
                    
83		 * 47:32 Error Row Address (ERRROW)
                    
84		 * 31:29 Error Bank Address (ERRBANK)
                    
85		 * 28:27 Error Rank Address (ERRRANK)
                    
                
CmdMute.cs https://bitbucket.org/LegoBricker/mchmok.git | C# | 320 lines
                    
135                    Help(p);
                    
136                    //_s.logger.ErrorLog(e);
                    
137                    return;
                    
                
apidirectmessage.php https://gitlab.com/BeS/io.schiessle.org | PHP | 450 lines
                    
67        if (!$this->scoped instanceof Profile) {
                    
68            // TRANS: Client error given when a user was not found (404).
                    
69            $this->clientError(_('No such user.'), 404);
                    
139        default:
                    
140            // TRANS: Client error displayed when coming across a non-supported API method.
                    
141            $this->clientError(_('API method not found.'), $code = 404);
                    
                
etsec.c https://gitlab.com/storedmirrors/qemu | C | 468 lines
                    
35#include "registers.h"
                    
36#include "qapi/error.h"
                    
37#include "qemu/log.h"
                    
387
                    
388static void etsec_realize(DeviceState *dev, Error **errp)
                    
389{
                    
457    qdev_set_nic_properties(dev, nd);
                    
458    sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
                    
459
                    
                
arm_gic_common.c https://gitlab.com/storedmirrors/qemu | C | 394 lines
                    
21#include "qemu/osdep.h"
                    
22#include "qapi/error.h"
                    
23#include "qemu/module.h"
                    
186
                    
187static void arm_gic_common_realize(DeviceState *dev, Error **errp)
                    
188{
                    
192    if (s->num_cpu > GIC_NCPU) {
                    
193        error_setg(errp, "requested %u CPUs exceeds GIC maximum %d",
                    
194                   s->num_cpu, GIC_NCPU);
                    
197    if (s->num_irq > GIC_MAXIRQ) {
                    
198        error_setg(errp,
                    
199                   "requested %u interrupt lines exceeds GIC maximum %d",
                    
207    if (s->num_irq < 32 || (s->num_irq % 32)) {
                    
208        error_setg(errp,
                    
209                   "%d interrupt lines unsupported: not divisible by 32",
                    
                
cp874.py https://github.com/rpattabi/ironruby.git | Python | 307 lines
                    
10
                    
11    def encode(self,input,errors='strict'):
                    
12        return codecs.charmap_encode(input,errors,encoding_table)
                    
13
                    
14    def decode(self,input,errors='strict'):
                    
15        return codecs.charmap_decode(input,errors,decoding_table)
                    
18    def encode(self, input, final=False):
                    
19        return codecs.charmap_encode(input,self.errors,encoding_table)[0]
                    
20
                    
22    def decode(self, input, final=False):
                    
23        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
                    
24
                    
                
mmap.c https://github.com/coriolis/vmxray.git | C | 409 lines
                    
123    if (!(flags & MAP_ANONYMOUS)) {
                    
124        /* msync() won't work here, so we return an error if write is
                    
125           possible while it is a shared mapping */
                    
247        (offset & ~qemu_host_page_mask) != (start & ~qemu_host_page_mask)) {
                    
248        /* msync() won't work here, so we return an error if write is
                    
249           possible while it is a shared mapping */
                    
388#else
                    
389    qerror("target_mremap: unsupported\n");
                    
390#endif
                    
                
comp_udp.h https://gitlab.com/YaoQ/mbed-for-linknode | C Header | 191 lines
                    
78#define UDP_FRM_NUM_FRM_NUM_Msk (0x7ffu << UDP_FRM_NUM_FRM_NUM_Pos) /**< \brief (UDP_FRM_NUM) Frame Number as Defined in the Packet Field Formats */
                    
79#define UDP_FRM_NUM_FRM_ERR (0x1u << 16) /**< \brief (UDP_FRM_NUM) Frame Error */
                    
80#define UDP_FRM_NUM_FRM_OK (0x1u << 17) /**< \brief (UDP_FRM_NUM) Frame OK */
                    
178#define UDP_CSR_RXBYTECNT(value) ((UDP_CSR_RXBYTECNT_Msk & ((value) << UDP_CSR_RXBYTECNT_Pos)))
                    
179#define UDP_CSR_ISOERROR (0x1u << 3) /**< \brief (UDP_CSR[6]) A CRC error has been detected in an isochronous transfer */
                    
180/* -------- UDP_FDR[6] : (UDP Offset: 0x050) Endpoint FIFO Data Register -------- */
                    
                
ImfCRgbaFile.h https://gitlab.com/generic-library/opencv | C Header | 467 lines
                    
456/*
                    
457** Most recent error message
                    
458*/
                    
459
                    
460const char *		ImfErrorMessage (void);
                    
461
                    
                
Makefile https://gitlab.com/SerenityS/msm8974_G2_render_kernel | Makefile | 386 lines
                    
101
                    
102ERRORS = \
                    
103	E2BIG \
                    
330	@(								\
                    
331	echo -e "\n<!-- Error Codes -->") >>$@
                    
332	@(								\
                    
333	for ident in $(ERRORS) ; do					\
                    
334	  echo "<!ENTITY $$ident \"<errorcode>$$ident</errorcode>"	\
                    
335	    "error code\">" >>$@ ;					\
                    
                
test-readline-interface.js https://gitlab.com/CORP-RESELLER/node | JavaScript | 439 lines
                    
248  }, function(err) {
                    
249    if (err instanceof TypeError) {
                    
250      if (/Argument "completer" must be a function/.test(err)) {
                    
281    if (key === 'X') {
                    
282      throw new Error('bad thing happened');
                    
283    }
                    
                
precision.cpp https://gitlab.com/CORP-RESELLER/node | C++ | 442 lines
                    
47FixedPrecision::round(
                    
48        DigitList &value, int32_t exponent, UErrorCode &status) const {
                    
49    if (U_FAILURE(status)) {
                    
73    if (fExactOnly && (value.fContext.status & DEC_Inexact)) {
                    
74        status = U_FORMAT_INEXACT_ERROR;
                    
75    } else if (fFailIfOverMax) {
                    
79        if (fMax.getIntDigitCount() < interval.getIntDigitCount()) {
                    
80            status = U_ILLEGAL_ARGUMENT_ERROR;
                    
81        }
                    
152        VisibleDigits &digits,
                    
153        UErrorCode &status) const {
                    
154    if (U_FAILURE(status)) {
                    
175        VisibleDigits &digits,
                    
176        UErrorCode &status) const {
                    
177    if (U_FAILURE(status)) {
                    
                
hostfile.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 488 lines
                    
100	if (ret == -1) {
                    
101		debug2("extract_salt: salt decode error");
                    
102		return (-1);
                    
202		if (ret != MRK_NONE)
                    
203			return MRK_ERROR;
                    
204		/* Markers are terminated by whitespace */
                    
206		    (sp = strchr(cp, '\t')) == NULL)
                    
207			return MRK_ERROR;
                    
208		/* Extract marker for comparison */
                    
209		if (sp <= cp + 1 || sp >= cp + sizeof(marker))
                    
210			return MRK_ERROR;
                    
211		memcpy(marker, cp, sp - cp);
                    
217		else
                    
218			return MRK_ERROR;
                    
219
                    
                
sys.c https://bitbucket.org/cyanogenmod/samsung-kernel-galaxys.git | C | 487 lines
                    
71	if (error)
                    
72		fs_warn(sdp, "freeze %d error %d", n, error);
                    
73
                    
418{
                    
419	int error;
                    
420
                    
421	sdp->sd_kobj.kset = gfs2_kset;
                    
422	error = kobject_init_and_add(&sdp->sd_kobj, &gfs2_ktype, NULL,
                    
423				     "%s", sdp->sd_table_name);
                    
423				     "%s", sdp->sd_table_name);
                    
424	if (error)
                    
425		goto fail;
                    
448fail:
                    
449	fs_err(sdp, "error %d adding sysfs files", error);
                    
450	return error;
                    
                
car_plantilla.control.php https://gitlab.com/talueses/SIPVE | PHP | 286 lines
                    
47    /**
                    
48     * @var string mensaje de exito o error
                    
49     */
                    
240
                    
241        // ------------------------------- MENSAJE ERROR --------------------------------//
                    
242        if(!$exito){
                    
                
issue_comment_form.vue https://gitlab.com/mehlah/gitlab-ce | Vue | 377 lines
                    
140
                    
141              if (res.errors) {
                    
142                if (res.errors.commands_only) {
                    
249        <div class="timeline-entry-inner">
                    
250          <div class="flash-container error-alert timeline-content"></div>
                    
251          <div class="timeline-icon hidden-xs hidden-sm">
                    
265
                    
266              <div class="error-alert"></div>
                    
267
                    
                
kubernetes_spec.rb https://gitlab.com/markglenfletcher/gitlab-ee | Ruby | 392 lines
                    
8
                    
9  shared_examples 'resource not found error' do |message|
                    
10    it 'raises error' do
                    
13      expect(result[:error]).to eq(message)
                    
14      expect(result[:status]).to eq(:error)
                    
15    end
                    
17
                    
18  shared_examples 'kubernetes API error' do |error_code|
                    
19    it 'raises error' do
                    
21
                    
22      expect(result[:error]).to eq("Kubernetes API returned status code: #{error_code}")
                    
23      expect(result[:status]).to eq(:error)
                    
380
                    
381      it { expect { subject }.to raise_error(::Kubeclient::HttpError) }
                    
382    end
                    
                
llimagej2coj.cpp https://github.com/TechyeFox/imprudence.git | C++ | 492 lines
                    
77/**
                    
78sample error callback expecting a LLFILE* client object
                    
79*/
                    
79*/
                    
80void error_callback(const char* msg, void*)
                    
81{
                    
128	memset(&event_mgr, 0, sizeof(opj_event_mgr_t));
                    
129	event_mgr.error_handler = error_callback;
                    
130	event_mgr.warning_handler = warning_callback;
                    
282	memset(&event_mgr, 0, sizeof(opj_event_mgr_t));
                    
283	event_mgr.error_handler = error_callback;
                    
284	event_mgr.warning_handler = warning_callback;
                    
432	memset(&event_mgr, 0, sizeof(opj_event_mgr_t));
                    
433	event_mgr.error_handler = error_callback;
                    
434	event_mgr.warning_handler = warning_callback;
                    
                
package-summary.html https://gitlab.com/finalversus/authenSimple | HTML | 309 lines
                    
171<tr class="altColor">
                    
172<td class="colFirst"><a href="../../../com/facebook/accountkit/AccountKitError.html" title="class in com.facebook.accountkit">AccountKitError</a></td>
                    
173<td class="colLast">
                    
173<td class="colLast">
                    
174<div class="block">Map of all the existing SDK error codes and respective message for convenience</div>
                    
175</td>
                    
226<tr class="altColor">
                    
227<td class="colFirst"><a href="../../../com/facebook/accountkit/AccountKitError.Type.html" title="enum in com.facebook.accountkit">AccountKitError.Type</a></td>
                    
228<td class="colLast">&nbsp;</td>
                    
255<td class="colLast">
                    
256<div class="block">Represents an error condition specific to the AccountKit SDK for Android.</div>
                    
257</td>
                    
                
helpers.rb https://gitlab.com/wzs1990/gitlab | Ruby | 465 lines
                    
173    # Checks the occurrences of required attributes, each attribute must be present in the params hash
                    
174    # or a Bad Request error is invoked.
                    
175    #
                    
202
                    
203        errors[label.title] = label.errors
                    
204      end
                    
270    def not_allowed!
                    
271      render_api_error!('405 Method Not Allowed', 405)
                    
272    end
                    
291      if model.errors.any?
                    
292        render_api_error!(model.errors.messages || '400 Bad Request', 400)
                    
293      end
                    
457    # We could get a Grape or a standard Ruby exception. We should only report anything that
                    
458    # is clearly an error.
                    
459    def report_exception?(exception)
                    
                
e1000_hw.h https://github.com/CyanogenMod/samsung-kernel-galaxys.git | C Header | 601 lines
                    
153	u8  status;      /* Descriptor status */
                    
154	u8  errors;      /* Descriptor Errors */
                    
155	__le16 special;
                    
175		struct {
                    
176			__le32 status_error;     /* ext status/error */
                    
177			__le16 length;
                    
201		struct {
                    
202			__le32 status_error;     /* ext status/error */
                    
203			__le16 length0;          /* length of buffer 0 */
                    
364struct e1000_phy_stats {
                    
365	u32 idle_errors;
                    
366	u32 receive_errors;
                    
                
branches_spec.rb https://gitlab.com/bennyp/gitlab-ce | Ruby | 302 lines
                    
38
                    
39    it "returns a 403 error if guest" do
                    
40      get api("/projects/#{project.id}/repository/branches", user2)
                    
43
                    
44    it "returns a 404 error if branch is not available" do
                    
45      get api("/projects/#{project.id}/repository/branches/unknown", user)
                    
190
                    
191    it "returns a 404 error if branch not found" do
                    
192      put api("/projects/#{project.id}/repository/branches/unknown/protect", user)
                    
195
                    
196    it "returns a 403 error if guest" do
                    
197      put api("/projects/#{project.id}/repository/branches/#{branch_name}/protect", user2)
                    
                
picroll.js https://gitlab.com/colin.luo/shbs | JavaScript | 395 lines
                    
119    //         dataType: 'jsonp',
                    
120    //         error: function() {
                    
121    //             FCAPP.Common.msg(true, {
                    
                
readme.md https://gitlab.com/minhaj_mimo/weatherApp | Markdown | 290 lines
                    
9- Incremental compilation (so faster builds)
                    
10- Error reporting
                    
11- Different output streams for .js, .d.ts files.
                    
35- `noImplicitAny` (boolean) - Warn on expressions and declarations with an implied 'any' type.
                    
36- `suppressImplicitAnyIndexErrors` (boolean) - Suppress --noImplicitAny errors for indexing objects lacking index signatures.
                    
37- `noLib` (boolean) - Don't include the default lib (with definitions for - Array, Date etc)
                    
46- `moduleResolution` (string) - Determine how modules get resolved. Either 'node' for Node.js/io.js style resolution, or 'classic' (default) (TS1.6+).
                    
47- `noEmitOnError` (boolean) - Do not emit outputs if any type checking errors were reported.
                    
48- `noEmitHelpers` (boolean) - Do not generate custom helper functions like __extends in compiled output.
                    
268You can set options, project or filter to `undefined` if you don't want to set them. Available reporters are:
                    
269- nullReporter (`ts.reporter.nullReporter()`) - Don't report errors
                    
270- defaultReporter (`ts.reporter.defaultReporter()`) - Report basic errors to the console
                    
270- defaultReporter (`ts.reporter.defaultReporter()`) - Report basic errors to the console
                    
271- longReporter (`ts.reporter.longReporter()`) - Extended version of default reporter, intelliJ link functionality + file watcher error highlighting should work using this one
                    
272- fullReporter (`ts.reporter.fullReporter(showFullFilename?: boolean)`) - Show full error messages, with source.
                    
                
members_spec.rb https://gitlab.com/dcondrey/gitlab-ee | Ruby | 363 lines
                    
180    context 'project in a group' do
                    
181      it 'returns a 405 method not allowed error when group membership lock is enabled' do
                    
182        group_with_membership_locked = create(:group, membership_lock: true)
                    
                
test_framework.js https://github.com/runeh/dragonfly-stp-1.git | JavaScript | 448 lines
                    
132        {
                    
133          throw Error("PrettyPrintError. Probably invalid message. " +
                    
134                        "payload: " + JSON.stringify(payload));
                    
161      null;
                    
162    if (status != 0) // Use the error structure if we received an error response
                    
163        definitions = window.package_map["com.opera.stp"]["Error"];
                    
                
crm_lead_to_opportunity.py https://gitlab.com/pmuontains/Odoo | Python | 265 lines
                    
6import re
                    
7from openerp.exceptions import UserError
                    
8
                    
89            if lead.probability == 100:
                    
90                raise UserError(_("Closed/Dead leads cannot be converted into opportunities."))
                    
91        return False
                    
                
vmload-xml.js https://gitlab.com/loomis/smartos-live | JavaScript | 436 lines
                    
70 *
                    
71 * If an error occurs parsing the XML from 'data', this will call:
                    
72 *
                    
72 *
                    
73 * callback(error)
                    
74 *
                    
74 *
                    
75 * with an Error object having an error string and one of the following as
                    
76 * error.code:
                    
77 *
                    
78 * 'PARSE_ERROR' - error parsing XML
                    
79 *
                    
108    if (!parser.parse(data)) {
                    
109        err = new Error(parser.getError());
                    
110        err.code = 'PARSE_ERROR';
                    
                
fr_file_index.html https://github.com/keo/rails_templates.git | HTML | 149 lines
                    
40    <a href="files/lib/spec/example/before_and_after_hooks_rb.html">lib/spec/example/before_and_after_hooks.rb</a><br />
                    
41    <a href="files/lib/spec/example/errors_rb.html">lib/spec/example/errors.rb</a><br />
                    
42    <a href="files/lib/spec/example/example_group_rb.html">lib/spec/example/example_group.rb</a><br />
                    
55    <a href="files/lib/spec/expectations_rb.html">lib/spec/expectations.rb</a><br />
                    
56    <a href="files/lib/spec/expectations/errors_rb.html">lib/spec/expectations/errors.rb</a><br />
                    
57    <a href="files/lib/spec/expectations/extensions_rb.html">lib/spec/expectations/extensions.rb</a><br />
                    
76    <a href="files/lib/spec/matchers/equal_rb.html">lib/spec/matchers/equal.rb</a><br />
                    
77    <a href="files/lib/spec/matchers/errors_rb.html">lib/spec/matchers/errors.rb</a><br />
                    
78    <a href="files/lib/spec/matchers/exist_rb.html">lib/spec/matchers/exist.rb</a><br />
                    
89    <a href="files/lib/spec/matchers/pretty_rb.html">lib/spec/matchers/pretty.rb</a><br />
                    
90    <a href="files/lib/spec/matchers/raise_error_rb.html">lib/spec/matchers/raise_error.rb</a><br />
                    
91    <a href="files/lib/spec/matchers/respond_to_rb.html">lib/spec/matchers/respond_to.rb</a><br />
                    
98    <a href="files/lib/spec/mocks/argument_matchers_rb.html">lib/spec/mocks/argument_matchers.rb</a><br />
                    
99    <a href="files/lib/spec/mocks/error_generator_rb.html">lib/spec/mocks/error_generator.rb</a><br />
                    
100    <a href="files/lib/spec/mocks/errors_rb.html">lib/spec/mocks/errors.rb</a><br />
                    
                
slrnrc.vim https://gitlab.com/yenny.prathivi/git-it-electron | Vim Script | 194 lines
                    
16" In some places whitespace is illegal
                    
17syn match slrnrcSpaceError	contained "\s"
                    
18
                    
57" Match as a "string" too
                    
58syn region  slrnrcVarIntStr	contained matchgroup=slrnrcVarInt start=+"+ end=+"+ oneline contains=slrnrcVarInt,slrnrcSpaceError
                    
59
                    
72" Match as a "string" too
                    
73syn region  slrnrcVarStrStr	contained matchgroup=slrnrcVarStr start=+"+ end=+"+ oneline contains=slrnrcVarStr,slrnrcSpaceError
                    
74
                    
88syn match   slrnrcColorObj	contained "\<quotes\d\+\>"
                    
89syn keyword slrnrcColorObj	contained article author boldtext box cursor date description error frame from_myself group grouplens_display header_name header_number headers
                    
90syn keyword slrnrcColorObj	contained high_score italicstext menu menu_press message neg_score normal pgpsignature pos_score quotes response_char selection signature status
                    
163  HiLink slrnrcTodo		Todo
                    
164  HiLink slrnrcSpaceError	Error
                    
165  HiLink slrnrcNumber		Number
                    
                
common.c https://gitlab.com/Codeaurora/platform_external_wpa_supplicant | C | 599 lines
                    
169 *
                    
170 * This function is used to print conditional debugging and error messages. The
                    
171 * output may be directed to stdout, stderr, and/or syslog based on
                    
352	if (out_file == NULL) {
                    
353		wpa_printf(MSG_ERROR, "wpa_debug_open_file: Failed to open "
                    
354			   "output file, using standard output");
                    
395	if (buf == NULL) {
                    
396		wpa_printf(MSG_ERROR, "wpa_msg: Failed to allocate message "
                    
397			   "buffer");
                    
463#ifdef _WIN32_WCE
                    
464void perror(const char *s)
                    
465{
                    
465{
                    
466	wpa_printf(MSG_ERROR, "%s: GetLastError: %d",
                    
467		   s, (int) GetLastError());
                    
                
test-log-stack-tracer.cc https://gitlab.com/Codeaurora/platform_external_v8 | C++ | 399 lines
                    
143#else
                    
144#error Host architecture is neither 32-bit nor 64-bit.
                    
145#endif
                    
235#else
                    
236#error Host architecture is neither 32-bit nor 64-bit.
                    
237#endif
                    
359#else
                    
360#error Unexpected platform.
                    
361#endif
                    
                
developer-notes.md https://gitlab.com/yenny.prathivi/bitcoin | Markdown | 375 lines
                    
102If the code is behaving strangely, take a look in the debug.log file in the data directory;
                    
103error and debugging messages are written there.
                    
104
                    
256      not linking the other is confusing. Please avoid that. Moving functions from
                    
257      the `.h` to the `.cpp` should not result in build errors
                    
258
                    
                
ib_cmrc.c https://gitlab.com/waldi/ipxe | C | 464 lines
                    
169		DBGC ( cmrc, "CMRC %s %s disconnected: %s\n",
                    
170		       ibdev->name, cmrc->name, strerror ( rc_cm ) );
                    
171		cmrc->connected = 0;
                    
181		DBGC ( cmrc, "CMRC %s %s could not deliver private data: %s\n",
                    
182		       ibdev->name, cmrc->name, strerror ( rc_xfer ) );
                    
183		ib_cmrc_close ( cmrc, rc_xfer );
                    
217
                    
218	/* Close the connection on any send errors */
                    
219	if ( rc != 0 ) {
                    
219	if ( rc != 0 ) {
                    
220		DBGC ( cmrc, "CMRC %s %s send error: %s\n",
                    
221		       ibdev->name, cmrc->name, strerror ( rc ) );
                    
243
                    
244	/* Close the connection on any receive errors */
                    
245	if ( rc != 0 ) {
                    
                
router.d.ts https://gitlab.com/Adongo/Blog-Site-final | TypeScript Typings | 443 lines
                    
193        /** @docsNotRequired */
                    
194        error: any);
                    
195    /** @docsNotRequired */
                    
234/**
                    
235 * @whatItDoes Error handler that is invoked when a navigation errors.
                    
236 *
                    
243 */
                    
244export declare type ErrorHandler = (error: any) => any;
                    
245/**
                    
267    /**
                    
268     * Error handler that is invoked when a navigation errors.
                    
269     *
                    
271     */
                    
272    errorHandler: ErrorHandler;
                    
273    /**
                    
                
merge_requests.rb https://gitlab.com/timothyandrew/gitlab-ee | Ruby | 312 lines
                    
15          elsif errors[:branch_conflict].any?
                    
16            error!(errors[:branch_conflict], 422)
                    
17          elsif errors[:validate_fork].any?
                    
22
                    
23          render_api_error!(errors, 400)
                    
24        end
                    
82        if (errors = validate_label_params(mr_params)).any?
                    
83          render_api_error!({ labels: errors }, 400)
                    
84        end
                    
90        else
                    
91          handle_merge_request_errors! merge_request.errors
                    
92        end
                    
170          else
                    
171            handle_merge_request_errors! merge_request.errors
                    
172          end
                    
                
Kernel.php https://github.com/notbrain/symfony-sandbox.git | PHP | 464 lines
                    
65        if ($this->debug) {
                    
66            ini_set('display_errors', 1);
                    
67            error_reporting(-1);
                    
70        } else {
                    
71            ini_set('display_errors', 0);
                    
72        }
                    
                
sdio.c https://github.com/xianai/Ultra-KSM-for-Linux-2.6.33.2-.git | C | 528 lines
                    
96		if (iwm_rx_handle(iwm, rx_buf, rx_size) < 0)
                    
97			IWM_WARN(iwm, "RX error\n");
                    
98
                    
                
vms-c.cc https://gitlab.com/adotout/gcc | C++ | 489 lines
                    
95    {
                    
96      error ("unknown %<#pragma member_alignment%> name %s", arg);
                    
97      return;
                    
100    {
                    
101      error ("malformed %<#pragma member_alignment%>");
                    
102      return;
                    
134        {
                    
135	  error ("unhandled alignment for %<#pragma nomember_alignment%>");
                    
136        }
                    
147    {
                    
148      error ("garbage at end of %<#pragma nomember_alignment%>");
                    
149      return;
                    
228    {
                    
229      error ("unknown %<#pragma extern_model%> model %qs", arg);
                    
230      return;
                    
                
tree-diagnostic.cc https://gitlab.com/adotout/gcc | C++ | 376 lines
                    
33/* Prints out, if necessary, the name of the current function
                    
34   that caused an error.  Called from all error and warning functions.  */
                    
35void
                    
40  diagnostic_report_current_module (context, loc);
                    
41  lang_hooks.print_error_function (context, LOCATION_FILE (loc), diagnostic);
                    
42}
                    
82     12    {
                    
83     13      MULT (1.0);// 1.0 << 1; <-- so this is an error.
                    
84     14    }
                    
88    test.c: In function ‘g’:
                    
89    test.c:5:14: error: invalid operands to binary << (have ‘double’ and ‘int’)
                    
90    test.c:2:9: note: in definition of macro 'OPERATE'
                    
162
                    
163	       test.c:5:14: error: invalid operands to binary << (have ‘double’ and ‘int’)
                    
164
                    
                
Vector2h.cs https://gitlab.com/Alex_Green/led_engine | C# | 365 lines
                    
97        /// <param name="y">32-bit single-precision floating-point number.</param>
                    
98        /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
                    
99        public Vector2h(Single x, Single y, bool throwOnError)
                    
100        {
                    
101            X = new Half(x, throwOnError);
                    
102            Y = new Half(y, throwOnError);
                    
118        /// <param name="v">OpenTK.Vector2</param>
                    
119        /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
                    
120        public Vector2h(Vector2 v, bool throwOnError)
                    
121        {
                    
122            X = new Half(v.X, throwOnError);
                    
123            Y = new Half(v.Y, throwOnError);
                    
140        /// <param name="v">OpenTK.Vector2</param>
                    
141        /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
                    
142        public Vector2h(ref Vector2 v, bool throwOnError)
                    
                
cake_session.test.php https://github.com/bb-dev/cakephp.git | PHP | 477 lines
                    
179/**
                    
180 * testError method
                    
181 *
                    
184 */
                    
185	function testError() {
                    
186		$this->Session->read('Does.not.exist');
                    
186		$this->Session->read('Does.not.exist');
                    
187		$result = $this->Session->error();
                    
188		$this->assertEqual($result, "Does.not.exist doesn't exist");
                    
190		$this->Session->delete('Failing.delete');
                    
191		$result = $this->Session->error();
                    
192		$this->assertEqual($result, "Failing.delete doesn't exist");
                    
223		$this->Session->watch('Watching');
                    
224		$this->expectError('Writing session key {Watching}: "They found us!"');
                    
225		$this->Session->write('Watching', 'They found us!');
                    
                
fixtures.js https://github.com/westoque/sproutcore.git | JavaScript | 403 lines
                    
69    if (query.get('location') !== SC.Query.LOCAL) {
                    
70      throw SC.$error('SC.Fixture data source can only fetch local queries');
                    
71    }
                    
73    if (!query.get('recordType') && !query.get('recordTypes')) {
                    
74      throw SC.$error('SC.Fixture data source can only fetch queries with one or more record types');
                    
75    }
                    
                
ras.c https://gitlab.com/chprasanna93/linux | C | 463 lines
                    
213
                    
214	pseries_log = get_pseries_errorlog((struct rtas_error_log *)ras_log_buf,
                    
215					   PSERIES_ELOG_SECT_ID_HOTPLUG);
                    
268 * the error is deemed recoverable, we log a warning and return.
                    
269 * For nonrecoverable errors, an error is logged and we stop all processing
                    
270 * as quickly as possible in order to prevent propagation of the failure.
                    
289	if (status == 0 &&
                    
290	    rtas_error_severity(rtas_elog) >= RTAS_SEVERITY_ERROR_SYNC)
                    
291		fatal = 1;
                    
298	if (fatal) {
                    
299		pr_emerg("Fatal hardware error detected. Check RTAS error"
                    
300			 " log for details. Powering off immediately\n");
                    
319/*
                    
320 * Get the error information for errors coming through the
                    
321 * FWNMI vectors.  The pt_regs' r3 will be updated to reflect
                    
                
jquery.imagesloaded.js https://gitlab.com/adwait.rise/guruautolines | JavaScript | 490 lines
                    
389    this.proxyImage.addEventListener( 'load', this );
                    
390    this.proxyImage.addEventListener( 'error', this );
                    
391    // bind to image as well for Firefox. #191
                    
392    this.img.addEventListener( 'load', this );
                    
393    this.img.addEventListener( 'error', this );
                    
394    this.proxyImage.src = this.img.src;
                    
420
                    
421  LoadingImage.prototype.onerror = function() {
                    
422    this.confirm( false, 'onerror' );
                    
427    this.proxyImage.removeEventListener( 'load', this );
                    
428    this.proxyImage.removeEventListener( 'error', this );
                    
429    this.img.removeEventListener( 'load', this );
                    
429    this.img.removeEventListener( 'load', this );
                    
430    this.img.removeEventListener( 'error', this );
                    
431  };
                    
                
port.c https://gitlab.com/freesoftware/linux | C | 573 lines
                    
120
                    
121	/* The bridging is rolled back on error */
                    
122	if (err) {
                    
                
xfs_buf.h https://gitlab.com/freesoftware/linux | C Header | 396 lines
                    
159	unsigned int		b_state;	/* internal state flags */
                    
160	int			b_io_error;	/* internal IO error state */
                    
161	wait_queue_head_t	b_waiters;	/* unpin waiters */
                    
182	unsigned int		b_offset;	/* page offset in first page */
                    
183	int			b_error;	/* error code on I/O */
                    
184
                    
194	 *
                    
195	 * last_error is used to ensure that we are getting repeated errors, not
                    
196	 * different errors. e.g. a block device might change ENOSPC to EIO when
                    
295extern void xfs_buf_ioend(struct xfs_buf *bp);
                    
296extern void __xfs_buf_ioerror(struct xfs_buf *bp, int error,
                    
297		xfs_failaddr_t failaddr);
                    
297		xfs_failaddr_t failaddr);
                    
298#define xfs_buf_ioerror(bp, err) __xfs_buf_ioerror((bp), (err), __this_address)
                    
299extern void xfs_buf_ioerror_alert(struct xfs_buf *, const char *func);
                    
                
PQServerOld.java https://gitlab.com/SlyOtis/PeakQ | Java | 369 lines
                    
25
                    
26    public static final int ERROR_DUPLICATE_EMAIL = 0;
                    
27    public static final int ERROR_DUPLICATE_PHONE = 1;
                    
27    public static final int ERROR_DUPLICATE_PHONE = 1;
                    
28    public static final int ERROR_BAD_CONNECTION = 3;
                    
29    public static final int ERROR_UNEXPECTED = 4;
                    
29    public static final int ERROR_UNEXPECTED = 4;
                    
30    public static final int ERROR_NO_MATCH = 5;
                    
31    public static final int ERROR_DUPLICATE_NAME = 6;
                    
31    public static final int ERROR_DUPLICATE_NAME = 6;
                    
32    public static final int ERROR_NO_IMAGE = 7;
                    
33
                    
34    public interface Callback{
                    
35        void onFailure(int errorCode);
                    
36        void onSuccess(int requestId, final String response);
                    
                
headers.html https://github.com/tpisto/rmongo.git | HTML | 388 lines
                    
56
                    
57div.admonition, div.attention, div.caution, div.danger, div.error,
                    
58div.hint, div.important, div.note, div.tip, div.warning {
                    
69div.attention p.admonition-title, div.caution p.admonition-title,
                    
70div.danger p.admonition-title, div.error p.admonition-title,
                    
71div.warning p.admonition-title {
                    
                
ClpSerializer.java https://github.com/johnnyhowey/liferay-plugins.git | Java | 444 lines
                    
361			catch (Throwable throwable2) {
                    
362				_log.error(throwable2, throwable2);
                    
363
                    
                
gedit-file-browser-store.h https://gitlab.com/tchaik/gedit | C Header | 188 lines
                    
62	GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE,
                    
63	GEDIT_FILE_BROWSER_STORE_RESULT_ERROR,
                    
64	GEDIT_FILE_BROWSER_STORE_RESULT_NO_TRASH,
                    
105	                             GtkTreeIter           *iter);
                    
106	void (* error)              (GeditFileBrowserStore *model,
                    
107	                             guint                  code,
                    
167                                                                                          gchar const                      *new_name,
                    
168                                                                                          GError                          **error);
                    
169GeditFileBrowserStoreResult      gedit_file_browser_store_delete                         (GeditFileBrowserStore            *model,
                    
                
raw.c https://gitlab.com/VD-EDU/vd-iot-evalkit-sdk | C | 436 lines
                    
165 *
                    
166 * @return lwIP error code.
                    
167 * - ERR_OK. Successful. No error occured.
                    
188 *
                    
189 * @return lwIP error code
                    
190 *
                    
                
register.c https://github.com/mirrors/wine.git | C | 318 lines
                    
76    ok (!ret, "Expected WintrustAddActionID to fail.\n");
                    
77    ok (GetLastError() == ERROR_INVALID_PARAMETER /* XP/W2K3 */ ||
                    
78        GetLastError() == 0xdeadbeef              /* Win98/NT4/W2K */,
                    
143    ok (ret, "Expected WintrustAddActionID to succeed.\n");
                    
144    ok (GetLastError() == 0xdeadbeef || GetLastError() == ERROR_ACCESS_DENIED,
                    
145        "Expected 0xdeadbeef or ERROR_ACCESS_DENIED, got %lu.\n",
                    
150    ok ( ret, "WintrustRemoveActionID failed : %ld\n", GetLastError());
                    
151    ok ( GetLastError() == 0xdeadbeef, "Last error should not have been changed: %lu\n", GetLastError());
                    
152
                    
157    ok (GetLastError() == ERROR_INVALID_PARAMETER,
                    
158        "Expected ERROR_INVALID_PARAMETER, got %lu.\n", GetLastError());
                    
159
                    
246        GetLastError() == 0xdeadbeef /* W2K and XP-SP1 */,
                    
247        "Expected ERROR_INVALID_PARAMETER or 0xdeadbeef, got %ld\n", GetLastError());
                    
248
                    
                
dllmain.c https://github.com/mirrors/wine.git | C | 440 lines
                    
140                {
                    
141                    WARN("failed to send WM_ENDSESSION to win %p; error 0x%08x\n",
                    
142                         qi->wins[i], GetLastError());
                    
200        {
                    
201            DWORD error = GetLastError();
                    
202            BOOL invalid = (error == ERROR_INVALID_WINDOW_HANDLE);
                    
206            else
                    
207                WARN("failed to send WM_QUERYENDSESSION to win %p; error 0x%08x; assuming refusal\n",
                    
208                     qi->wins[i], error);
                    
                
resources.rb https://github.com/mattetti/merb.git | Ruby | 329 lines
                    
87          elsif options[:identify]
                    
88            raise Error, "The constant #{klass_name} does not exist, please specify the constant for this resource"
                    
89          end
                    
89          end
                    
90        rescue NameError => e
                    
91          Merb.logger.debug!("Could not find resource model #{klass_name}")
                    
                
flash.c https://gitlab.com/undergroundman/persianbashblog | C | 573 lines
                    
234	if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                    
235		printf ("** ERROR: sector count %d > max (%d) **\n",
                    
236			info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
                    
                
line.c https://gitlab.com/tlevine/DragonFlyBSD | C | 657 lines
                    
171	if (FILE2INT(sp, data.data, data.size, wp, wlen)) {
                    
172		if (!F_ISSET(sp, SC_CONV_ERROR)) {
                    
173			F_SET(sp, SC_CONV_ERROR);
                    
173			F_SET(sp, SC_CONV_ERROR);
                    
174			msgq(sp, M_ERR, "324|Conversion error on line %d", lno);
                    
175		}
                    
618 * db_err --
                    
619 *	Report a line error.
                    
620 *
                    
628	msgq(sp, M_ERR,
                    
629	    "008|Error: unable to retrieve line %lu", (u_long)lno);
                    
630}
                    
                
parse-events.y https://gitlab.com/felipe_artur/linux-stable | Happy | 672 lines
                    
303	struct parse_events_evlist *data = _data;
                    
304	struct parse_events_error *error = data->error;
                    
305	struct list_head *list;
                    
315	struct parse_events_evlist *data = _data;
                    
316	struct parse_events_error *error = data->error;
                    
317	struct list_head *list;
                    
327	struct parse_events_evlist *data = _data;
                    
328	struct parse_events_error *error = data->error;
                    
329	struct list_head *list;
                    
385	struct parse_events_evlist *data = _data;
                    
386	struct parse_events_error *error = data->error;
                    
387	struct list_head *list;
                    
447	struct parse_events_evlist *data = _data;
                    
448	struct parse_events_error *error = data->error;
                    
449	struct list_head *list;
                    
                
fileutil.py https://github.com/mogaal/editra.git | Python | 453 lines
                    
42        import win32com.client as win32client
                    
43    except ImportError:
                    
44        win32client = None
                    
140        mod_time = os.path.getmtime(file_name)
                    
141    except (OSError, EnvironmentError):
                    
142        mod_time = 0
                    
230                bHidden = bool(attrs & 2)
                    
231            except (AttributeError, AssertionError):
                    
232                bHidden = False
                    
430        open(fname, 'w').close()
                    
431    except (IOError, OSError), msg:
                    
432        return (False, str(msg))
                    
449        os.mkdir(folder)
                    
450    except (OSError, IOError), msg:
                    
451        return (False, str(msg))
                    
                
presubmit.py https://github.com/koichik/node.git | Python | 435 lines
                    
32  md5er = hashlib.md5
                    
33except ImportError, e:
                    
34  import md5
                    
112    out_lines = ""
                    
113    error_count = -1
                    
114    while True:
                    
116      if out_line == '' and process.poll() != None:
                    
117        if error_count == -1:
                    
118          print "Failed to process %s" % command.pop()
                    
123        out_lines += out_line
                    
124        error_count += 1
                    
125    sys.stdout.write(out_lines)
                    
271    total_errors = sum(results)
                    
272    print "Total errors found: %d" % total_errors
                    
273    good_files_cache.Save()
                    
                
dct.c https://github.com/libav/libav.git | C | 473 lines
                    
153
                    
154static int dct_error(const struct algo *dct, int test, int is_idct, int speed)
                    
155{
                    
335
                    
336static void idct248_error(const char *name,
                    
337                          void (*idct248_put)(uint8_t *dest,
                    
445    if (test_248_dct) {
                    
446        idct248_error("SIMPLE-C", ff_simple_idct248_put, speed);
                    
447    } else {
                    
450            for (i = 0; i < FF_ARRAY_ELEMS(idct_tab); i++)
                    
451                err |= dct_error(&idct_tab[i], test, test_idct, speed);
                    
452
                    
454                if (!(~cpu_flags & idct_tab_arch[i].cpu_flag))
                    
455                    err |= dct_error(&idct_tab_arch[i], test, test_idct, speed);
                    
456        }
                    
                
users.php https://github.com/nistormihai/Newscoop.git | PHP | 190 lines
                    
38regGS("Another user is registered with that e-mail address, please choose a different one.", "Another user is registered with that e-mail address, please choose a different one.");
                    
39regGS("There was an error when trying to update the user info.", "There was an error when trying to update the user info.");
                    
40regGS("Are you sure you want to delete the IP Group $1:$2?", "Are you sure you want to delete the IP Group $1:$2?");
                    
112regGS("The IP Group $1 has been created.", "The IP Group $1 has been created.");
                    
113regGS("There was an error creating the IP address group.", "There was an error creating the IP address group.");
                    
114regGS("The IP address group $1 has been deleted.", "The IP address group $1 has been deleted.");
                    
                
geolocation.js https://github.com/varju/titanium_mobile.git | JavaScript | 509 lines
                    
266			{
                    
267				currentHeading.text = 'error: ' + e.error;
                    
268				Ti.API.info("Code translation: "+translateErrorCode(e.code));
                    
289			{
                    
290				updatedHeading.text = 'error: ' + e.error;
                    
291				Ti.API.info("Code translation: "+translateErrorCode(e.code));
                    
349		{
                    
350			currentLocation.text = 'error: ' + JSON.stringify(e.error);
                    
351			Ti.API.info("Code translation: "+translateErrorCode(e.code));
                    
351			Ti.API.info("Code translation: "+translateErrorCode(e.code));
                    
352			alert('error ' + JSON.stringify(e.error));
                    
353			return;
                    
376		{
                    
377			updatedLocation.text = 'error:' + JSON.stringify(e.error);
                    
378			updatedLatitude.text = '';
                    
                
gnu_io_RXTXPort.h https://github.com/neophob/librxtx.git | C Header | 533 lines
                    
411 * Class:     gnu_io_RXTXPort
                    
412 * Method:    nativeGetParityErrorChar
                    
413 * Signature: ()B
                    
414 */
                    
415JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar
                    
416  (JNIEnv *, jobject);
                    
419 * Class:     gnu_io_RXTXPort
                    
420 * Method:    nativeSetParityErrorChar
                    
421 * Signature: (B)Z
                    
422 */
                    
423JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar
                    
424  (JNIEnv *, jobject, jbyte);
                    
                
mono.c https://github.com/trevor/ImageMagick.git | C | 359 lines
                    
95%
                    
96%    o exception: return any errors or warnings in this structure.
                    
97%
                    
132  if ((image->columns == 0) || (image->rows == 0))
                    
133    ThrowReaderException(OptionError,"MustSpecifyImageSize");
                    
134  status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
                    
140  if (DiscardBlobBytes(image,image->offset) == MagickFalse)
                    
141    ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
                    
142      image->filename);
                    
147  if (AcquireImageColormap(image,2,exception) == MagickFalse)
                    
148    ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
                    
149  if (image_info->ping != MagickFalse)
                    
186  if (EOFBlob(image) != MagickFalse)
                    
187    ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
                    
188      image->filename);
                    
                
colormap.c https://github.com/trevor/ImageMagick.git | C | 392 lines
                    
140  if (image->colormap == (PixelPacket *) NULL)
                    
141    ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
                    
142      image->filename);
                    
329  if (pixels == (unsigned short *) NULL)
                    
330    ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
                    
331      image->filename);
                    
                
disk.c https://gitlab.com/dj-tech/reactos | C | 477 lines
                    
125    {
                    
126        BaseSetLastNTError(Status);
                    
127        return 0;
                    
188    {
                    
189        SetLastError(ERROR_PATH_NOT_FOUND);
                    
190        return FALSE;
                    
200        CloseHandle(hFile);
                    
201        BaseSetLastNTError (errCode);
                    
202        return FALSE;
                    
325    {
                    
326        BaseSetLastNTError (Status);
                    
327        return FALSE;
                    
                
device.c https://github.com/alexsharoff/pcsx2-online.git | C | 420 lines
                    
135#ifdef VERBOSE_WARNINGS
                    
136    PrintLog("CDVD device:   Error opening device: %i:%s", errno, strerror(errno));
                    
137#endif /* VERBOSE_WARNINGS */
                    
144#ifdef VERBOSE_WARNINGS
                    
145    PrintLog("CDVD device:   Error getting device capabilities: %i:%s", errno, strerror(errno));
                    
146#endif /* VERBOSE_WARNINGS */
                    
281    PrintLog("CDVD device:   Trouble reading Disc Type!");
                    
282    PrintLog("CDVD device:     Error: %i:%s", errno, strerror(errno));
                    
283#endif /* VERBOSE_WARNINGS */
                    
321      PrintLog("CDVD device:   Trouble reading Drive Status!");
                    
322      PrintLog("CDVD device:     Error: (%i) %i:%s", s32result, errno, strerror(errno));
                    
323#endif /* VERBOSE_WARNINGS */
                    
332      PrintLog("CDVD device:   Trouble detecting Disc Status presense!");
                    
333      PrintLog("CDVD device:     Error: (%i) %i:%s", s32result, errno, strerror(errno));
                    
334#endif /* VERBOSE_WARNINGS */
                    
                
log.c https://github.com/wox2/migrace_databaze.git | C | 377 lines
                    
28#include "svn_types.h"
                    
29#include "svn_error.h"
                    
30#include "svn_mergeinfo.h"
                    
                
ui_admin.php https://github.com/ushahidi/Ushahidi-Localizations.git | PHP | 286 lines
                    
44	'categories' => 'קטגוריות',
                    
45	'chart_display_error' => 'שגיאה בהצגת התרשים',
                    
46	'check_message_valid' => 'אנא וודא שההודעה שלך תקינה',
                    
86	'entire_collective' => 'כל הקולקטיב',
                    
87	'error_geocoding' => 'שגיאה בקידוד-גאו! שגיאת HTTP.',
                    
88	'error_imap' => 'ספריית IMAP PHP איננה מותקנת',
                    
88	'error_imap' => 'ספריית IMAP PHP איננה מותקנת',
                    
89	'error_msg' => 'שגיאה',
                    
90	'error_post_incident' => 'שגיאה, לא ניתן לשגר את התקרית',
                    
113	'file_not_found_upload' => 'לא הצלחתי למצוא את הקובץ שהועלה',
                    
114	'file_open_error' => 'לא הצלחתי לפתוח את הקובץ לקריאה',
                    
115	'form_not_exists' => 'הטופס לא קיים!',
                    
190	'no_data' => 'אין נתונים. אין תוצאות להציג.',
                    
191	'no_error' => 'אין שגיאות',
                    
192	'no_result_display_msg' => 'אין תוצאות להציג!',
                    
                
fixed.h https://github.com/liuzhwei/digital-frame-for-pictures.git | C Header | 484 lines
                    
83#  elif MAD_F_FRACBITS > 28
                    
84#   error "MAD_F_FRACBITS > 28 not currently supported"
                    
85#   define MAD_F(x)		((mad_fixed_t)  \
                    
109# if defined(FPM_FLOAT)
                    
110#  error "FPM_FLOAT not yet supported"
                    
111
                    
430# else
                    
431#  error "no FPM selected"
                    
432# endif
                    
                
Character.cpp https://gitlab.com/0072016/Facebook-SDK- | C++ | 369 lines
                    
83    // Create a Trie from the value array.
                    
84    UErrorCode error = U_ZERO_ERROR;
                    
85    UTrie2* trie = utrie2_openFromSerialized(
                    
88        nullptr, &error);
                    
89    ASSERT(error == U_ZERO_ERROR);
                    
90    return trie;
                    
363{
                    
364    UErrorCode status = U_ZERO_ERROR;
                    
365    UScriptCode script = uscript_getScript(character, &status);
                    
                
win_utils.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 428 lines
                    
188    if (INVALID_FILE_ATTRIBUTES == attributes) {
                    
189      DWORD error = ::GetLastError();
                    
190      if (error != ERROR_FILE_NOT_FOUND &&
                    
191          error != ERROR_PATH_NOT_FOUND &&
                    
192          error != ERROR_INVALID_NAME) {
                    
193        // Unexpected error.
                    
198        NOTREACHED_NT();
                    
199        return error;
                    
200      }
                    
307
                    
308  DWORD last_error = ::GetLastError();
                    
309  if (0 == return_value && (ERROR_FILE_NOT_FOUND == last_error ||
                    
310                            ERROR_PATH_NOT_FOUND == last_error ||
                    
311                            ERROR_INVALID_NAME == last_error)) {
                    
312    // The file does not exist, but maybe a sub path needs to be expanded.
                    
                
quic_simple_client.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 406 lines
                    
117  if (rc != OK) {
                    
118    LOG(ERROR) << "Connect failed: " << ErrorToShortString(rc);
                    
119    return false;
                    
123  if (rc != OK) {
                    
124    LOG(ERROR) << "SetReceiveBufferSize() failed: " << ErrorToShortString(rc);
                    
125    return false;
                    
129  if (rc != OK) {
                    
130    LOG(ERROR) << "SetSendBufferSize() failed: " << ErrorToShortString(rc);
                    
131    return false;
                    
135  if (rc != OK) {
                    
136    LOG(ERROR) << "GetLocalAddress failed: " << ErrorToShortString(rc);
                    
137    return false;
                    
389                                   const DatagramClientSocket* socket) {
                    
390  LOG(ERROR) << "QuicSimpleClient read failed: " << ErrorToShortString(result);
                    
391  Disconnect();
                    
                
ScriptRunIterator.cpp https://gitlab.com/0072016/Facebook-SDK- | C++ | 378 lines
                    
24
                    
25    UErrorCode status = U_ZERO_ERROR;
                    
26    // Leave room to insert primary script. It's not strictly necessary but
                    
35        ch, &dst[0], dst.size(), &status);
                    
36    if (status == U_BUFFER_OVERFLOW_ERROR) {
                    
37        // Allow this, we'll just use what we have.
                    
37        // Allow this, we'll just use what we have.
                    
38        DLOG(ERROR) << "Exceeded maximum script count of " << kMaxScriptCount << " for 0x" << std::hex << ch;
                    
39        count = dst.size();
                    
39        count = dst.size();
                    
40        status = U_ZERO_ERROR;
                    
41    }
                    
44    if (U_FAILURE(status)) {
                    
45        DLOG(ERROR) << "Could not get icu script data: " << status << " for 0x" << std::hex << ch;
                    
46        dst.clear();
                    
                
0034_auto__del_field_flag_video.py https://gitlab.com/urbanjunglestudio/whambush-api | Python | 161 lines
                    
17        # User chose to not deal with backwards NULL issues for 'Flag.video'
                    
18        raise RuntimeError("Cannot reverse this migration. 'Flag.video' and its values cannot be restored.")
                    
19        
                    
                
es-es.py https://github.com/trosa/listool.git | Python | 259 lines
                    
24'Cannot be empty': 'No puede estar vacío',
                    
25'Cannot compile: there are errors in your app.        Debug it, correct errors and try again.': 'No se puede compilar: hay errores en su aplicación. Depure, corrija errores y vuelva a intentarlo.',
                    
26'Change Password': 'Cambie Contraseña',
                    
53'Editing file "%s"': 'Editando archivo "%s"',
                    
54'Error logs for "%(app)s"': 'Bitácora de errores en "%(app)s"',
                    
55'First name': 'Nombre',
                    
145'cache': 'cache',
                    
146'cache, errors and sessions cleaned': 'cache, errores y sesiones eliminados',
                    
147'cannot create file': 'no es posible crear archivo',
                    
176'edit profile': 'editar perfil',
                    
177'errors': 'errores',
                    
178'export as csv file': 'exportar como archivo CSV',
                    
195'insert new %s': 'inserte nuevo %s',
                    
196'internal error': 'error interno',
                    
197'invalid password': 'contraseña inválida',
                    
                
gan_formatter.php https://gitlab.com/remyvianne/krowkaramel | PHP | 382 lines
                    
127	/**
                    
128	 * Errors found during formatting
                    
129	 * @var array
                    
130	 */
                    
131	var $errors = array();
                    
132
                    
188	 * @param bool $recursive
                    
189	 * @return bool|array Array of errors on failure, true on succes
                    
190	 */
                    
235
                    
236		return (($errors) ? $errors : true);
                    
237	#php5e
                    
375				foreach($a as $error) {
                    
376					$this->errors[] = $error[0]->getMessage().' >>> '.$error[1];
                    
377				}
                    
                
LockingTransaction.java https://github.com/berlinbrown/lightreports.git | Java | 583 lines
                    
36
                    
37static class RetryEx extends Error{
                    
38}
                    
                
test_class_weight.py https://gitlab.com/0072016/0072016 | Python | 281 lines
                    
34def test_compute_class_weight_not_present():
                    
35    # Raise error when y does not contain all class labels
                    
36    classes = np.arange(4)
                    
37    y = np.asarray([0, 0, 0, 1, 1, 2])
                    
38    assert_raises(ValueError, compute_class_weight, "auto", classes, y)
                    
39    assert_raises(ValueError, compute_class_weight, "balanced", classes, y)
                    
39    assert_raises(ValueError, compute_class_weight, "balanced", classes, y)
                    
40    # Raise error when y has items not in classes
                    
41    classes = np.arange(2)
                    
41    classes = np.arange(2)
                    
42    assert_raises(ValueError, compute_class_weight, "auto", classes, y)
                    
43    assert_raises(ValueError, compute_class_weight, "balanced", classes, y)
                    
43    assert_raises(ValueError, compute_class_weight, "balanced", classes, y)
                    
44    assert_raises(ValueError, compute_class_weight, {0: 1., 1: 2.}, classes, y)
                    
45
                    
                
xilinx_spi.c https://github.com/gnarlyc/desirec_2.6.29.git | C | 463 lines
                    
49#define XSPI_SR_TX_FULL_MASK	0x08	/* Transmit FIFO is full */
                    
50#define XSPI_SR_MODE_FAULT_MASK	0x10	/* Mode fault error */
                    
51
                    
65
                    
66#define XSPI_INTR_MODE_FAULT		0x01	/* Mode fault error */
                    
67#define XSPI_INTR_SLAVE_MODE_FAULT	0x02	/* Selected as slave while
                    
                
binfmt_aout.c https://github.com/gnarlyc/desirec_2.6.29.git | C | 481 lines
                    
88 * field, which also makes sure the core-dumps won't be recursive if the
                    
89 * dumping of the process results in another error..
                    
90 */
                    
222	struct exec ex;
                    
223	unsigned long error;
                    
224	unsigned long fd_offset;
                    
292		down_write(&current->mm->mmap_sem);
                    
293		error = do_brk(text_addr & PAGE_MASK, map_size);
                    
294		up_write(&current->mm->mmap_sem);
                    
294		up_write(&current->mm->mmap_sem);
                    
295		if (error != (text_addr & PAGE_MASK)) {
                    
296			send_sig(SIGKILL, current, 0);
                    
296			send_sig(SIGKILL, current, 0);
                    
297			return error;
                    
298		}
                    
                
_Plugin.js https://github.com/samokk/mfu.git | JavaScript | 374 lines
                    
129		}
                    
130		throw new Error('Please make sure class "' + clazzStr + '" is required.');			
                    
131	},
                    
                
CMakeLists.txt https://github.com/dlrdave/CMake.git | CMake | 375 lines
                    
223      if (${feature}_works)
                    
224        message(SEND_ERROR
                    
225          "Feature ${feature} expected not to work for ${lang} ${CMAKE_${lang}_COMPILER_ID}-${CMAKE_${lang}_COMPILER_VERSION}.
                    
                
rpm.py https://github.com/dustyleary/scons-local.git | Python | 357 lines
                    
36from SCons.Tool.packaging import stripinstallbuilder, src_targz
                    
37from SCons.Errors import UserError
                    
38
                    
46
                    
47    # Generate a UserError whenever the target name has been set explicitly,
                    
48    # since rpm does not allow for controlling it. This is detected by
                    
51    if str(target[0])!="%s-%s"%(NAME, VERSION):
                    
52        raise UserError( "Setting target is not supported for rpm." )
                    
53    else:
                    
110    except KeyError, e:
                    
111        raise SCons.Errors.UserError( "Missing PackageTag '%s' for RPM packager" % e.args[0] )
                    
112
                    
146    except KeyError, e:
                    
147        raise SCons.Errors.UserError( '"%s" package field for RPM is missing.' % e.args[0] )
                    
148
                    
                
Token.pm https://github.com/vismor/LaTeXML.git | Perl | 426 lines
                    
107
                    
108# Primarily for error reporting.
                    
109sub stringify {
                    
                
test_gc.rb https://github.com/shugo/jruby.git | Ruby | 454 lines
                    
103  def test_stat_argument
                    
104    assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) {GC.stat(:"\u{30eb 30d3 30fc}")}
                    
105  end
                    
109    assert_equal stat[:count], GC.stat(:count)
                    
110    assert_raise(ArgumentError){ GC.stat(:invalid) }
                    
111  end
                    
150    assert_equal info[:gc_by], GC.latest_gc_info(:gc_by)
                    
151    assert_raise(ArgumentError){ GC.latest_gc_info(:invalid) }
                    
152    assert_raise_with_message(ArgumentError, /\u{30eb 30d3 30fc}/) {GC.latest_gc_info(:"\u{30eb 30d3 30fc}")}
                    
330        ObjectSpace.define_finalizer(Object.new, raise_proc)
                    
331        Thread.handle_interrupt(RuntimeError => :immediate) {break}
                    
332        Thread.handle_interrupt(RuntimeError => :on_blocking) {break}
                    
332        Thread.handle_interrupt(RuntimeError => :on_blocking) {break}
                    
333        Thread.handle_interrupt(RuntimeError => :never) {break}
                    
334      end
                    
                
template.rb https://github.com/corymatthew/demo_app.git | Ruby | 337 lines
                    
84    #
                    
85    # To do so, simply raise the raise +WrongEncodingError+
                    
86    # as follows:
                    
87    #
                    
88    #     raise WrongEncodingError.new(
                    
89    #       problematic_string,
                    
93    eager_autoload do
                    
94      autoload :Error
                    
95      autoload :Handlers
                    
147    rescue Exception => e
                    
148      handle_render_error(view, e)
                    
149    end
                    
160    #
                    
161    # Notice this method raises an error if the template to be refreshed does not have a
                    
162    # virtual path set (true just for inline templates).
                    
                
Language_sk.properties https://github.com/natecavanaugh/liferay-portal.git | Properties File | 123 lines
                    
6allow-administrators-to-publish-and-edit-workflows-description=Pri výbere používateľom s rolou správcu pravidelné v virtuálne inštancie môžete publikovať nový workflow definícií, vrátane skriptovania obsah, ktorý sa vykonáva vnútri portálu (a potenciálne ďalšie virtuálne inštancie). (Automatic Translation)
                    
7an-error-occurred-while-retrieving-the-list-of-instances=Pri získavaní zoznamu požiadaviek na publikovanie nastala chyba. Kontaktujte prosím administrátora.
                    
8assigned-initial-task=Počiatočné priradenej úlohy. (Automatic Translation)
                    
17each-fork-node-requires-a-join-node-make-sure-all-forks-and-joins-are-properly-paired=Každý uzol vidlice vyžaduje spojenie uzol. Uistite sa, že všetky vidlice a spojov sú správne spárované. (Automatic Translation)
                    
18fix-the-errors-between-the-fork-node-x-and-join-node-x=Fix the errors between the fork node {0} and join node {1}. (Automatic Copy)
                    
19fork-x-and-join-x-nodes-must-be-paired=Fork {0} and join {1} nodes must be paired. (Automatic Copy)
                    
                
 

Source

Language